[llvm-branch-commits] [llvm] [BOLT] Allow builtin_unreachable to be at MaxSize address (PR #111771)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Oct 9 19:45:10 PDT 2024


================
@@ -1365,8 +1365,9 @@ Error BinaryFunction::disassemble() {
           if (containsAddress(TargetAddress)) {
             TargetSymbol = getOrCreateLocalLabel(TargetAddress);
           } else {
-            if (TargetAddress == getAddress() + getSize() &&
-                TargetAddress < getAddress() + getMaxSize() &&
+            if (BC.isELF() && !BC.getBinaryDataAtAddress(TargetAddress) &&
----------------
maksfb wrote:

What happens when there's a data object at `TargetAddress`?

https://github.com/llvm/llvm-project/pull/111771


More information about the llvm-branch-commits mailing list