aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/UnreachableBlockElim.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-13 17:58:21 +0000
committerDan Gohman <gohman@apple.com>2008-09-13 17:58:21 +0000
commit7f7f365665a22e1b4397d0924f24b929607f9690 (patch)
treecf93cc36bc9bf6bb3b78a416592b7a93c84efb22 /lib/CodeGen/UnreachableBlockElim.cpp
parent131357271f3824981b1d0572685fbc380983aa35 (diff)
downloadexternal_llvm-7f7f365665a22e1b4397d0924f24b929607f9690.zip
external_llvm-7f7f365665a22e1b4397d0924f24b929607f9690.tar.gz
external_llvm-7f7f365665a22e1b4397d0924f24b929607f9690.tar.bz2
Remove isImm(), isReg(), and friends, in favor of
isImmediate(), isRegister(), and friends, to avoid confusion about having two different names with the same meaning. I'm not attached to the longer names, and would be ok with changing to the shorter names if others prefer it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/UnreachableBlockElim.cpp')
-rw-r--r--lib/CodeGen/UnreachableBlockElim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/UnreachableBlockElim.cpp b/lib/CodeGen/UnreachableBlockElim.cpp
index 3c3fca5..fff9f19 100644
--- a/lib/CodeGen/UnreachableBlockElim.cpp
+++ b/lib/CodeGen/UnreachableBlockElim.cpp
@@ -127,7 +127,7 @@ bool UnreachableMachineBlockElim::runOnMachineFunction(MachineFunction &F) {
while (start != succ->end() &&
start->getOpcode() == TargetInstrInfo::PHI) {
for (unsigned i = start->getNumOperands() - 1; i >= 2; i-=2)
- if (start->getOperand(i).isMBB() &&
+ if (start->getOperand(i).isMachineBasicBlock() &&
start->getOperand(i).getMBB() == BB) {
start->RemoveOperand(i);
start->RemoveOperand(i-1);