[mach-o] fix non-debug warnings

llvm-svn: 214145
This commit is contained in:
Nick Kledzik 2014-07-28 23:40:26 +00:00
parent ff3caa5a3e
commit 3fc5ffecf8
1 changed files with 4 additions and 4 deletions

View File

@ -285,10 +285,10 @@ uint32_t ArchHandler_arm::setDisplacementInArmBranch(uint32_t instruction,
// Force use of BLX.
newInstruction = 0xFA000000;
if (!is_blx) {
bool isConditionalBranch = ((instruction & 0xF0000000) != 0xE0000000);
assert(!isConditionalBranch && "no conditional arm blx");
bool is_bl = ((instruction & 0xFF000000) == 0xEB000000);
assert(is_bl && "no arm pc-rel BX instruction");
assert(((instruction & 0xF0000000) == 0xE0000000)
&& "no conditional arm blx");
assert(((instruction & 0xFF000000) == 0xEB000000)
&& "no arm pc-rel BX instruction");
}
if (displacement & 2)
h = 1;