From 1cdcccce0151b664de1238aab930b7663ad009c7 Mon Sep 17 00:00:00 2001 From: Diana Picus Date: Thu, 2 May 2019 10:08:29 +0000 Subject: [PATCH] [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 --- lib/Target/ARM/ARMInstructionSelector.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); -- 2.11.0