]> granicus.if.org Git - llvm/commitdiff
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 6c148a3a646af0949be654584f50354860acd5fc..8e159f47ea2eedc4c6e39ac04feb60880060097a 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();
   }
 }