Do not cache a pointer to ExprEvalContexts.back().
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 15 Nov 2012 15:18:42 +0000 (15:18 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 15 Nov 2012 15:18:42 +0000 (15:18 +0000)
commit671f4c0ce1e0a51ca495ba49c42c9fdafa3bf32d
treeb66c97dc40c69b2ac9dca77c67fb208746ba424f
parent93dcc8d2bd276871b3c5422c9d0ebbf7cec12166
Do not cache a pointer to ExprEvalContexts.back().

It may become a dangling pointer if the underlying SmallVector reallocates.
Sadly the testcase is really large and doesn't reduce well because of
SmallVector's reallocation patterns.

Fixes PR14336.

llvm-svn: 168045
clang/lib/Sema/SemaExprCXX.cpp