mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix PR10755 by checking for invalid predicate codes from UNPREDICTABLE t2IT instructions when decoding their successors.
This is the last disassembly crash detected by exhaustive Thumb2 instruction space. Major thanks to Chandler Carruth for making this kind of exhaustive testing possible. llvm-svn: 138625
This commit is contained in:
parent
b20cee1e19
commit
87c906dabf
@ -376,6 +376,8 @@ void ThumbDisassembler::AddThumbPredicate(MCInst &MI) const {
|
||||
unsigned CC;
|
||||
if (!ITBlock.empty()) {
|
||||
CC = ITBlock.back();
|
||||
if (CC == 0xF)
|
||||
CC = ARMCC::AL;
|
||||
ITBlock.pop_back();
|
||||
} else
|
||||
CC = ARMCC::AL;
|
||||
|
Loading…
Reference in New Issue
Block a user