OSDN Git Service

Remove an oddly unnecessary temporary.
authorEric Christopher <echristo@gmail.com>
Mon, 27 Mar 2017 22:40:51 +0000 (22:40 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 27 Mar 2017 22:40:51 +0000 (22:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298888 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.cpp

index 6c148a3..8e159f4 100644 (file)
@@ -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();
   }
 }