From d1aabb28134a7e72ce4d6ac26b093648f5c57e88 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 3 May 2016 00:24:32 +0000 Subject: livePhysRegs: Pass MBB by reference in addLive{Ins|Outs}(); NFC The block must no be nullptr for the addLiveIns()/addLiveOuts() function. llvm-svn: 268340 --- llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp') diff --git a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp index 0d09c2375dc..87e4eb66c9c 100644 --- a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp +++ b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp @@ -128,7 +128,7 @@ bool StackMapLiveness::calculateLiveness(MachineFunction &MF) { DEBUG(dbgs() << "****** BB " << MBB.getName() << " ******\n"); LiveRegs.init(TRI); // FIXME: This should probably be addLiveOuts(). - LiveRegs.addLiveOutsNoPristines(&MBB); + LiveRegs.addLiveOutsNoPristines(MBB); bool HasStackMap = false; // Reverse iterate over all instructions and add the current live register // set to an instruction if we encounter a patchpoint instruction. -- cgit v1.2.3