diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-30 00:16:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-30 00:16:51 +0000 |
commit | b86b8551ce619450b2eb4fc708ead08b83996da7 (patch) | |
tree | c88874bfa16e5022ddd1311311c8faf95bd78417 /lib/CodeGen/CGClass.cpp | |
parent | 6850fafd27ba804d4d4ca8af404beed5574e3749 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions