summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
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
commitfca896815d3e2d41bcfbf84a0b09c04240add3f0 (patch)
tree26817c22af09cbf591874b074ebfa6b10d15774b /llvm/lib/Target/PowerPC
parente8c913e657c4caa56b7200a0cdd3b3aff1db8220 (diff)
downloadbcm5719-llvm-fca896815d3e2d41bcfbf84a0b09c04240add3f0.tar.gz
bcm5719-llvm-fca896815d3e2d41bcfbf84a0b09c04240add3f0.zip
Simplify a few more things, eliminating a few more dependencies on
"the current basic block". llvm-svn: 79069
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index f9e620aa308..d9a4daefb13 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud