diff options
| author | Matthias Braun <matze@braunis.de> | 2016-05-03 00:24:32 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2016-05-03 00:24:32 +0000 |
| commit | d1aabb28134a7e72ce4d6ac26b093648f5c57e88 (patch) | |
| tree | 2442763e87b35507f5fc54eb68af0e6ff1d6a223 /llvm/lib/Target/AArch64 | |
| parent | a4e71bd11a8cbec276460bb3db47283fc3b05428 (diff) | |
| download | bcm5719-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/AArch64')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp b/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp index db6dcc7131d..d10a9c64104 100644 --- a/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp +++ b/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp @@ -607,7 +607,7 @@ bool AArch64ExpandPseudo::expandCMP_SWAP( MachineOperand &New = MI.getOperand(4); LivePhysRegs LiveRegs(&TII->getRegisterInfo()); - LiveRegs.addLiveOuts(&MBB); + LiveRegs.addLiveOuts(MBB); for (auto I = std::prev(MBB.end()); I != MBBI; --I) LiveRegs.stepBackward(*I); @@ -685,7 +685,7 @@ bool AArch64ExpandPseudo::expandCMP_SWAP_128( MachineOperand &NewHi = MI.getOperand(7); LivePhysRegs LiveRegs(&TII->getRegisterInfo()); - LiveRegs.addLiveOuts(&MBB); + LiveRegs.addLiveOuts(MBB); for (auto I = std::prev(MBB.end()); I != MBBI; --I) LiveRegs.stepBackward(*I); |

