]> granicus.if.org Git - clang/commit
Fix handling of condition variables in the face of temp dtors.
authorManuel Klimek <klimek@google.com>
Mon, 5 May 2014 18:21:06 +0000 (18:21 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 5 May 2014 18:21:06 +0000 (18:21 +0000)
commitfdea112f9cca521ca1d92820cfb12109d63def04
tree2e80bffca88833fea03119cdedc6b0f3113415a6
parent59f08897582ccda29076e1eecf505d6c02538c5f
Fix handling of condition variables in the face of temp dtors.

The assignment needs to be before the destruction of the temporary.
This patch calls out to addStmt, which invokes VisitDeclStmt, which has
all the correct logic for handling temporaries.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207985 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/temp-obj-dtors-cfg-output.cpp