]> granicus.if.org Git - clang/commit
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)
commit1b48633d308460049e1132960f3c33c850de5bd2
tree87451b5fd991050c65ecfa70946d818f923d699a
parentc4a77906c259cba58c147d8468c406a430ecdcbb
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168045 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp