summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-08 23:59:09 +0000
committerDan Gohman <gohman@apple.com>2008-07-08 23:59:09 +0000
commitf188fa4499e2cad33c4fe7a701491a118d621dfa (patch)
treeffddba43318b93aaeb3514d4808c928a69dd0a09 /llvm/lib/CodeGen/MachineInstr.cpp
parent8293650d90688ff490eee82f759051ada9531880 (diff)
downloadbcm5719-llvm-f188fa4499e2cad33c4fe7a701491a118d621dfa.tar.gz
bcm5719-llvm-f188fa4499e2cad33c4fe7a701491a118d621dfa.zip
It's no longer necessary to test if a MachineBasicBlock's
parent is non-null. It now always is. llvm-svn: 53263
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 38176b0c132..e9a8c63abdc 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -348,8 +348,7 @@ int MachineInstr::getOpcode() const {
/// return null.
MachineRegisterInfo *MachineInstr::getRegInfo() {
if (MachineBasicBlock *MBB = getParent())
- if (MachineFunction *MF = MBB->getParent())
- return &MF->getRegInfo();
+ return &MBB->getParent()->getRegInfo();
return 0;
}
OpenPOWER on IntegriCloud