summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
diff options
context:
space:
mode:
authorPetr Pavlu <petr.pavlu@arm.com>2015-11-16 16:41:13 +0000
committerPetr Pavlu <petr.pavlu@arm.com>2015-11-16 16:41:13 +0000
commita770379524abd814c410cb63812b27f681dc9f1f (patch)
tree9a692afa0f246eec322502e323a818f106acac14 /lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
parent9327a7575b1d5ed96d1f551f520d84f894156c07 (diff)
downloadbcm5719-llvm-a770379524abd814c410cb63812b27f681dc9f1f.tar.gz
bcm5719-llvm-a770379524abd814c410cb63812b27f681dc9f1f.zip
[ARM] Prevent use of a value pointed by end() iterator when placing a jump table
Function ARMConstantIslands::doInitialJumpTablePlacement() iterates over all basic blocks in a machine function. It calls `MI = MBB.getLastNonDebugInstr()` to get the last instruction in each block and then uses MI->getOpcode() to decide what to do. If getLastNonDebugInstr() returns MBB.end() (for example, when the block does not contain any instructions) then calling getOpcode() on this value is incorrect. Avoid this problem by checking the result of getLastNonDebugInstr(). Differential Revision: http://reviews.llvm.org/D14694 llvm-svn: 253222
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud