[lld] r214145 - [mach-o] fix non-debug warnings
Nick Kledzik
kledzik at apple.com
Mon Jul 28 16:40:27 PDT 2014
Author: kledzik
Date: Mon Jul 28 18:40:26 2014
New Revision: 214145
URL: http://llvm.org/viewvc/llvm-project?rev=214145&view=rev
Log:
[mach-o] fix non-debug warnings
Modified:
lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm.cpp?rev=214145&r1=214144&r2=214145&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm.cpp Mon Jul 28 18:40:26 2014
@@ -285,10 +285,10 @@ uint32_t ArchHandler_arm::setDisplacemen
// 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;
More information about the llvm-commits
mailing list