$OpenBSD: patch-lib_Target_AArch64_AArch64InstrInfo_cpp,v 1.2 2021/05/18 03:35:07 rsadowski Exp $

XXX no comment

Index: lib/Target/AArch64/AArch64InstrInfo.cpp
--- lib/Target/AArch64/AArch64InstrInfo.cpp.orig
+++ lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -96,6 +96,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
