summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 20:11:19 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 20:11:19 +0000
commit1d87bcf4909b06dcd86320722653341f08b8b396 (patch)
treec96a6176090b950f14ac44061b68f243a1920fe3 /lib/Transforms/IPO/InlineSimple.cpp
parentcfe26c930ae691ff3012736555846c45087e1a9e (diff)
downloadllvm-1d87bcf4909b06dcd86320722653341f08b8b396.tar.gz
llvm-1d87bcf4909b06dcd86320722653341f08b8b396.tar.bz2
llvm-1d87bcf4909b06dcd86320722653341f08b8b396.tar.xz
Convert more code to use new style casts
Eliminate old style casts from value.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index 27ef66e42e..8bc0a77cd1 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/lib/Transforms/IPO/InlineSimple.cpp
@@ -40,7 +40,7 @@ static inline void RemapInstruction(Instruction *I,
for (unsigned op = 0, E = I->getNumOperands(); op != E; ++op) {
const Value *Op = I->getOperand(op);
Value *V = ValueMap[Op];
- if (!V && (Op->isMethod() || Op->isConstant()))
+ if (!V && (isa<Method>(Op) || isa<ConstPoolVal>(Op)))
continue; // Methods and constants don't get relocated
if (!V) {