diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-02 05:57:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-02 05:57:12 +0000 |
commit | 2150542af9c47a6c6614ec5900f7eb021211d8b5 (patch) | |
tree | 3b30ef91418e526cf08e4ccd73bd98dffc29b926 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 185fa54c689ab5bb8f97ee776def598ccfa74566 (diff) | |
download | bcm5719-llvm-2150542af9c47a6c6614ec5900f7eb021211d8b5.tar.gz bcm5719-llvm-2150542af9c47a6c6614ec5900f7eb021211d8b5.zip |
Adjust to new TargetMachine interface
llvm-svn: 13956
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index c72b247d8a4..43ac49bd777 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -81,7 +81,7 @@ void ilist_traits<MachineInstr>::transferNodesFromList( MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() { - const TargetInstrInfo& TII = getParent()->getTarget().getInstrInfo(); + const TargetInstrInfo& TII = *getParent()->getTarget().getInstrInfo(); iterator I = end(); while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode())); if (I != end() && !TII.isTerminatorInstr(I->getOpcode())) ++I; |