From: Diana Picus Date: Thu, 2 May 2019 10:08:29 +0000 (+0000) Subject: [ARM GlobalISel] Fixup r359768 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cdcccce0151b664de1238aab930b7663ad009c7;p=llvm [ARM GlobalISel] Fixup r359768 Get rid of local variable used only in assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359772 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstructionSelector.cpp b/lib/Target/ARM/ARMInstructionSelector.cpp index 54402ddc718..b97924cf975 100644 --- a/lib/Target/ARM/ARMInstructionSelector.cpp +++ b/lib/Target/ARM/ARMInstructionSelector.cpp @@ -861,8 +861,7 @@ bool ARMInstructionSelector::select(MachineInstr &I, isSExt = true; LLVM_FALLTHROUGH; case G_ZEXT: { - LLT DstTy = MRI.getType(I.getOperand(0).getReg()); - assert(DstTy.getSizeInBits() <= 32 && + assert(MRI.getType(I.getOperand(0).getReg()).getSizeInBits() <= 32 && "Unsupported destination size for extension"); LLT SrcTy = MRI.getType(I.getOperand(1).getReg());