From f48ef3355fc8b20a9b2d3c55533b03ba5545f46a Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 27 Mar 2017 22:40:51 +0000 Subject: Remove an oddly unnecessary temporary. llvm-svn: 298888 --- llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Target/PowerPC') diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 6c148a3a646..8e159f47ea2 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -1836,8 +1836,7 @@ unsigned PPCInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const { PatchPointOpers Opers(&MI); return Opers.getNumPatchBytes(); } else { - const MCInstrDesc &Desc = get(Opcode); - return Desc.getSize(); + return get(Opcode).getSize(); } } -- cgit v1.2.3