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