]> granicus.if.org Git - llvm/commitdiff
[ARM GlobalISel] Fixup r359768
authorDiana Picus <diana.picus@linaro.org>
Thu, 2 May 2019 10:08:29 +0000 (10:08 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 2 May 2019 10:08:29 +0000 (10:08 +0000)
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

index 54402ddc7183f2efdf5c16d73c7fcae5b0a91c19..b97924cf975a445a94ade0f234f6b98ea00bd246 100644 (file)
@@ -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());