diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-12 17:51:52 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-12 17:51:52 +0000 |
commit | 20d5c8731f4bc1aa72ced6cf61016407b74109d5 (patch) | |
tree | 65218f1f3dbd2484a4cafa7fafda0b3ed2155fb7 /gcc/tree-vrp.c | |
parent | 754d67d5ba4a1f9994210d402893a4cf49ce6a71 (diff) | |
download | gcc-20d5c8731f4bc1aa72ced6cf61016407b74109d5.zip gcc-20d5c8731f4bc1aa72ced6cf61016407b74109d5.tar.gz gcc-20d5c8731f4bc1aa72ced6cf61016407b74109d5.tar.bz2 |
compiler: avoid orphaning Bexpressions when processing conversions
The method Type_conversion_expression::do_get_backend was (in some
circumstances) creating a Bexpression for the source expression of the
conversion and then throwing it away before using it. Fix up this
method to insure that the call to get_backend() on the source
expression is only made when the result will be used.
Reviewed-on: https://go-review.googlesource.com/45350
From-SVN: r249131
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions