summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-15 02:07:36 +0000
committerDan Gohman <gohman@apple.com>2009-08-15 02:07:36 +0000
commitbd51c677390d8e13560cbf3ea972b95a5fbc1f9a (patch)
tree22d8f3d00cff4342fd5695a47736c999032775ac /lib/Target/PowerPC/PPCISelDAGToDAG.cpp
parent0d24bfbf92ee0c3fa604df6c2099f46ec9ad3a94 (diff)
downloadllvm-bd51c677390d8e13560cbf3ea972b95a5fbc1f9a.tar.gz
llvm-bd51c677390d8e13560cbf3ea972b95a5fbc1f9a.tar.bz2
llvm-bd51c677390d8e13560cbf3ea972b95a5fbc1f9a.tar.xz
Simplify a few more things, eliminating a few more dependencies on
"the current basic block". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index f9e620aa30..d9a4daefb1 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -282,7 +282,7 @@ SDNode *PPCDAGToDAGISel::getGlobalBaseReg() {
if (!GlobalBaseReg) {
const TargetInstrInfo &TII = *TM.getInstrInfo();
// Insert the set of GlobalBaseReg into the first MBB of the function
- MachineBasicBlock &FirstMBB = BB->getParent()->front();
+ MachineBasicBlock &FirstMBB = MF->front();
MachineBasicBlock::iterator MBBI = FirstMBB.begin();
DebugLoc dl = DebugLoc::getUnknownLoc();