summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-30 00:16:51 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-30 00:16:51 +0000
commit6a527718238236bff8672e29414f71ee09073e2a (patch)
tree2a6395eec760771c8c0997b7b64947e6f7bf2d60 /clang/lib/CodeGen/CodeGenModule.cpp
parentda03f3ba6475603d30a4d09f57a7783b9b8237d6 (diff)
downloadbcm5719-llvm-6a527718238236bff8672e29414f71ee09073e2a.tar.gz
bcm5719-llvm-6a527718238236bff8672e29414f71ee09073e2a.zip
PR11926 + duplicates: Fix crash in -Wuninitialized when using a compiler like
g++4.7, which reuses stack space allocated for temporaries. CFGElement::getAs returns a suitably-cast version of 'this'. Patch by Markus Trippelsdorf! No test: this code has the same observable behavior as the old code when built with most compilers, and the tests were already failing when built with a compiler for which this produced a broken binary. llvm-svn: 155803
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud