diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-26 08:12:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-26 08:12:11 +0000 |
commit | e92b1f4917bfb669a09d220dc979fc3676df4da8 (patch) | |
tree | 46983c77732eedbcad2bd0e3832620a27c813823 /lib/Driver/Tools.cpp | |
parent | 66a5bf923c5b19d419b68bc6822f80d17f1465bb (diff) |
Fix lifetime issue for backing APValue of OpaqueValueExpr in recursive
constexpr function evaluation, and corresponding ASan / valgrind issue in
tests, by storing the corresponding value with the relevant stack frame. This
also prevents re-evaluation of the source of the underlying OpaqueValueExpr,
which makes a major performance difference for certain contrived code (see
testcase update).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions