[llvm] r361782 - [RuntimeDyld][ARM] Fix an incorrect assertion condition.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon May 27 14:34:32 PDT 2019
Author: lhames
Date: Mon May 27 14:34:31 2019
New Revision: 361782
URL: http://llvm.org/viewvc/llvm-project?rev=361782&view=rev
Log:
[RuntimeDyld][ARM] Fix an incorrect assertion condition.
Fixes https://llvm.org/PR42036
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h?rev=361782&r1=361781&r2=361782&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h Mon May 27 14:34:31 2019
@@ -224,7 +224,7 @@ public:
HighInsn = (HighInsn & 0xf800) | ((Value >> 12) & 0x7ff);
uint16_t LowInsn = readBytesUnaligned(LocalAddress + 2, 2);
- assert((LowInsn & 0xf800) != 0xf8000 &&
+ assert((LowInsn & 0xf800) == 0xf800 &&
"Unrecognized thumb branch encoding (BR22 low bits)");
LowInsn = (LowInsn & 0xf800) | ((Value >> 1) & 0x7ff);
More information about the llvm-commits
mailing list