Fix PR14321, a crash when Clang is built with GCC 4.7 at -O1 or greater.
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 16 Nov 2012 01:14:52 +0000 (01:14 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 16 Nov 2012 01:14:52 +0000 (01:14 +0000)
commitc08fa185961a38a1d972ccc7267206d0382f81f3
tree048033cb3c3341a958daa3d112887139c5f64aa9
parentaff2a269e315c66c4bf69c4e18114a801b3cfc43
Fix PR14321, a crash when Clang is built with GCC 4.7 at -O1 or greater.

GCC 4.7 reuses stack slots fairly aggressively, which exposes more temporary
lifetime bugs.

No new test, this was caught by the existing CodeGenCXX/mangle-ms-templates.cpp.

llvm-svn: 168124
clang/lib/AST/MicrosoftMangle.cpp