1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Silence enum conversion warnings.

llvm-svn: 126578
This commit is contained in:
Benjamin Kramer 2011-02-27 18:13:53 +00:00
parent b6f7dcb996
commit 0bdf517525

View File

@ -749,7 +749,7 @@ static int readSIB(struct InternalInstruction* insn) {
insn->sibIndex = SIB_INDEX_NONE;
break;
default:
insn->sibIndex = (EABase)(sibIndexBase + index);
insn->sibIndex = (SIBIndex)(sibIndexBase + index);
if (insn->sibIndex == SIB_INDEX_sib ||
insn->sibIndex == SIB_INDEX_sib64)
insn->sibIndex = SIB_INDEX_NONE;
@ -796,7 +796,7 @@ static int readSIB(struct InternalInstruction* insn) {
}
break;
default:
insn->sibBase = (EABase)(sibBaseBase + base);
insn->sibBase = (SIBBase)(sibBaseBase + base);
break;
}