1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[X86] Fix MSVC "truncation from 'int' to 'bool'" warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-01-13 10:52:22 +00:00
parent a5ce9c1527
commit 340feeb91b

View File

@ -936,14 +936,14 @@ static bool readOpcode(struct InternalInstruction *insn) {
LLVM_DEBUG(dbgs() << format("Found a three-byte escape prefix (0x%hhx)",
current));
if (consume(insn, current))
return -1;
return true;
insn->opcodeType = THREEBYTE_38;
} else if (current == 0x3a) {
LLVM_DEBUG(dbgs() << format("Found a three-byte escape prefix (0x%hhx)",
current));
if (consume(insn, current))
return -1;
return true;
insn->opcodeType = THREEBYTE_3A;
} else if (current == 0x0f) {