[llvm-bugs] [Bug 42036] New: RuntimeDyldMachOARM.h - comparison is always true due to limited range of data type

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 27 10:38:25 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42036

            Bug ID: 42036
           Summary: RuntimeDyldMachOARM.h - comparison is always true due
                    to limited range of data type
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Generic Execution Engine Support
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: 1101.debian at gmail.com, lhames at gmail.com,
                    llvm-bugs at lists.llvm.org,
                    sanjoy at playingwithpointers.com

http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/7242/steps/build%20stage%201/logs/warnings%20%281%29

      uint16_t LowInsn = readBytesUnaligned(LocalAddress + 2, 2);
      assert((LowInsn & 0xf800) != 0xf8000 &&
             "Unrecognized thumb branch encoding (BR22 low bits)");

This warning suggests a typo in the assertion - should it be:

      assert((LowInsn & 0xf800) != 0xf800 &&
             "Unrecognized thumb branch encoding (BR22 low bits)");

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190527/bfddcdfa/attachment.html>


More information about the llvm-bugs mailing list