summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-05-03 00:24:32 +0000
committerMatthias Braun <matze@braunis.de>2016-05-03 00:24:32 +0000
commitd1aabb28134a7e72ce4d6ac26b093648f5c57e88 (patch)
tree2442763e87b35507f5fc54eb68af0e6ff1d6a223 /llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
parenta4e71bd11a8cbec276460bb3db47283fc3b05428 (diff)
downloadbcm5719-llvm-d1aabb28134a7e72ce4d6ac26b093648f5c57e88.tar.gz
bcm5719-llvm-d1aabb28134a7e72ce4d6ac26b093648f5c57e88.zip
livePhysRegs: Pass MBB by reference in addLive{Ins|Outs}(); NFC
The block must no be nullptr for the addLiveIns()/addLiveOuts() function. llvm-svn: 268340
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZShortenInst.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZShortenInst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
index 2f31be87a3d..083718518f2 100644
--- a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
@@ -181,7 +181,7 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) {
// Set up the set of live registers at the end of MBB (live out)
LiveRegs.clear();
- LiveRegs.addLiveOuts(&MBB);
+ LiveRegs.addLiveOuts(MBB);
// Iterate backwards through the block looking for instructions to change.
for (auto MBBI = MBB.rbegin(), MBBE = MBB.rend(); MBBI != MBBE; ++MBBI) {
OpenPOWER on IntegriCloud