diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-08 19:30:42 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-08 19:34:58 -0700 |
commit | 946e1a48eb5b92dcf17a064b62157124da661869 (patch) | |
tree | 3a57fe74b48b32f668ab456618883ac0b6f19cbf /elaborate.cxx | |
parent | 56212da92dae36e5870ac6149c89d967fcab10f9 (diff) | |
download | systemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.tar.gz systemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.tar.xz systemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.zip |
Allow @cast failures to get optimized away
We have the saved_conversion_error field, but I wasn't using it. Now
@cast errors are saved in that field, so they're only seen if the
optimizer doesn't remove the @cast.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elaborate.cxx b/elaborate.cxx index 6fb3f197..7c4a5fca 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -3448,7 +3448,7 @@ typeresolution_info::visit_cast_op (cast_op* e) if (e->saved_conversion_error) throw (* (e->saved_conversion_error)); else - throw semantic_error("unresolved cast expression", e->tok); + throw semantic_error("type definition '" + e->type + "' not found", e->tok); } |