summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-27 22:40:51 +0000
committerEric Christopher <echristo@gmail.com>2017-03-27 22:40:51 +0000
commitf48ef3355fc8b20a9b2d3c55533b03ba5545f46a (patch)
tree008aeb17ed63e9d68f4070228a0e73b2cc99084f /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parentbe2f7d9d61abeab29fa9b601d8f487842b2ee318 (diff)
downloadbcm5719-llvm-f48ef3355fc8b20a9b2d3c55533b03ba5545f46a.tar.gz
bcm5719-llvm-f48ef3355fc8b20a9b2d3c55533b03ba5545f46a.zip
Remove an oddly unnecessary temporary.
llvm-svn: 298888
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 6c148a3a646..8e159f47ea2 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/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();
}
}
OpenPOWER on IntegriCloud