diff options
author | Diana Picus <diana.picus@linaro.org> | 2019-05-02 10:08:29 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2019-05-02 10:08:29 +0000 |
commit | 1136ea2d446dcf02d11cb1e9862e9d290eaa8a68 (patch) | |
tree | 4b2b85f1bebd63ea2cd062c4299bd19cff8d9dca /llvm/lib/Target/ARM/ARMInstructionSelector.cpp | |
parent | 15b89df9daf950431f213ee864e7989879802103 (diff) | |
download | bcm5719-llvm-1136ea2d446dcf02d11cb1e9862e9d290eaa8a68.tar.gz bcm5719-llvm-1136ea2d446dcf02d11cb1e9862e9d290eaa8a68.zip |
[ARM GlobalISel] Fixup r359768
Get rid of local variable used only in assertion.
llvm-svn: 359772
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstructionSelector.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstructionSelector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstructionSelector.cpp b/llvm/lib/Target/ARM/ARMInstructionSelector.cpp index 54402ddc718..b97924cf975 100644 --- a/llvm/lib/Target/ARM/ARMInstructionSelector.cpp +++ b/llvm/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()); |