]> granicus.if.org Git - clang/commit
Teach the CFG builder how to properly destroy temporaries who
authorDouglas Gregor <dgregor@apple.com>
Tue, 15 Nov 2011 15:29:30 +0000 (15:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 15 Nov 2011 15:29:30 +0000 (15:29 +0000)
commit2d9eb21325a0854e86de7344f54a8e6cef2a97ad
treeee3f61717e10dcfab1b085808c0bceb7a66cbf9b
parent037ad1b8f00b80aa76e73e3118133e9a59fd177e
Teach the CFG builder how to properly destroy temporaries who
lifetimes have been extended via reference binding. The type of the
reference and the type of the temporary are not necessarily the same,
which could cause a crash. Fixes <rdar://problem/10398199>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144646 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/SemaCXX/uninitialized.cpp