diff --git a/lib/Target/AArch64/AArch64InstrInfo.cpp b/lib/Target/AArch64/AArch64InstrInfo.cpp index 092af05e199..d7fa0a1db5d 100644 --- a/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -730,9 +730,6 @@ unsigned AArch64InstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { if (MI.getOpcode() == AArch64::INLINEASM) return getInlineAsmLength(MI.getOperand(0).getSymbolName(), MAI); - if (MI.isLabel()) - return 0; - switch (MI.getOpcode()) { case TargetOpcode::BUNDLE: return getInstBundleLength(MI); @@ -740,8 +737,8 @@ unsigned AArch64InstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { case TargetOpcode::KILL: case TargetOpcode::PROLOG_LABEL: case TargetOpcode::EH_LABEL: + case TargetOpcode::GC_LABEL: case TargetOpcode::DBG_VALUE: - return 0; case AArch64::TLSDESCCALL: return 0; default: