[llvm] r359772 - [ARM GlobalISel] Fixup r359768

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 03:08:30 PDT 2019


Author: rovka
Date: Thu May  2 03:08:29 2019
New Revision: 359772

URL: http://llvm.org/viewvc/llvm-project?rev=359772&view=rev
Log:
[ARM GlobalISel] Fixup r359768

Get rid of local variable used only in assertion.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp?rev=359772&r1=359771&r2=359772&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp Thu May  2 03:08:29 2019
@@ -861,8 +861,7 @@ bool ARMInstructionSelector::select(Mach
     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());




More information about the llvm-commits mailing list