[llvm] r298888 - Remove an oddly unnecessary temporary.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 27 15:40:51 PDT 2017
Author: echristo
Date: Mon Mar 27 17:40:51 2017
New Revision: 298888
URL: http://llvm.org/viewvc/llvm-project?rev=298888&view=rev
Log:
Remove an oddly unnecessary temporary.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp?rev=298888&r1=298887&r2=298888&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp Mon Mar 27 17:40:51 2017
@@ -1836,8 +1836,7 @@ unsigned PPCInstrInfo::getInstSizeInByte
PatchPointOpers Opers(&MI);
return Opers.getNumPatchBytes();
} else {
- const MCInstrDesc &Desc = get(Opcode);
- return Desc.getSize();
+ return get(Opcode).getSize();
}
}
More information about the llvm-commits
mailing list