From f91749e2b5431905dad8a12123bcd98b741579b4 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 27 Mar 2017 22:40:51 +0000 Subject: [PATCH] Remove an oddly unnecessary temporary. llvm-svn: 298888 --- lib/Target/PowerPC/PPCInstrInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } }