aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-06-11 02:41:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-06-11 02:41:00 +0000
commit7c5d4dce49fb03e63858e44da450b7ff462cd592 (patch)
tree6d86151dcafe65d13ba326501aabbc2b63e1596c /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parent276135073091ea3545cb177666d9815b49fe797d (diff)
downloadllvm-7c5d4dce49fb03e63858e44da450b7ff462cd592.zip
llvm-7c5d4dce49fb03e63858e44da450b7ff462cd592.tar.gz
llvm-7c5d4dce49fb03e63858e44da450b7ff462cd592.tar.bz2
Rework IR emission for lifetime-extended temporaries. Instead of trying to walk
into the expression and dig out a single lifetime-extended entity and manually pull its cleanup outside the expression, instead keep a list of the cleanups which we'll need to emit when we get to the end of the full-expression. Also emit those cleanups early, as EH-only cleanups, to cover the case that the full-expression does not terminate normally. This allows IR generation to properly model temporary lifetime when multiple temporaries are extended by the same declaration. We have a pre-existing bug where an exception thrown from a temporary's destructor does not clean up lifetime-extended temporaries created in the same expression and extended to automatic storage duration; that is not fixed by this patch. llvm-svn: 183721
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions