From: Eric Christopher Date: Mon, 27 Mar 2017 22:40:51 +0000 (+0000) Subject: Remove an oddly unnecessary temporary. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=617b05090f6dc5548ede2981c15e96f0fc118826;p=llvm Remove an oddly unnecessary temporary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298888 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 6c148a3a646..8e159f47ea2 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/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(); } }