]> granicus.if.org Git - clang/commit
In ExpressionEvaluationContextRecord manage LambdaMangle with a shared
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 14 Nov 2012 19:16:13 +0000 (19:16 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 14 Nov 2012 19:16:13 +0000 (19:16 +0000)
commitb6ad9b163d50827d4cd7eccadb20432cd3c089d5
tree2453fbde5d1934fc998df9860a8d31836d118c36
parent70cd619e74306b1599d5579e6fd6a14bd9592281
In ExpressionEvaluationContextRecord manage LambdaMangle with a shared
pointer, otherwise we will double free it when ExpressionEvaluationContextRecord
gets copied.

Fixes crash in rdar://12645424 & http://llvm.org/PR14252

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167946 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/LambdaMangleContext.h
include/clang/Sema/Sema.h
test/SemaCXX/crash-lambda-12645424.cpp [new file with mode: 0644]