openbsd-ports/devel/llvm/patches/patch-lib_Target_AArch64_AArch64InstrInfo_cpp
2022-03-10 00:04:05 +00:00

16 lines
529 B
Plaintext

XXX no comment
Index: lib/Target/AArch64/AArch64InstrInfo.cpp
--- lib/Target/AArch64/AArch64InstrInfo.cpp.orig
+++ lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -97,6 +97,9 @@ unsigned AArch64InstrInfo::getInstSizeInBytes(const Ma
default:
// Anything not explicitly designated otherwise is a normal 4-byte insn.
NumBytes = 4;
+
+ if (Desc.getSize() > 0)
+ NumBytes = Desc.getSize();
break;
case TargetOpcode::STACKMAP:
// The upper bound for a stackmap intrinsic is the full length of its shadow