From 38569343868ee3dad90dcdddfb9fee1ca0bcf25f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Oct 2001 20:11:19 +0000 Subject: Convert more code to use new style casts Eliminate old style casts from value.h llvm-svn: 696 --- llvm/lib/Transforms/IPO/InlineSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp') diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp index 27ef66e42e3..8bc0a77cd1f 100644 --- a/llvm/lib/Transforms/IPO/InlineSimple.cpp +++ b/llvm/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(Op) || isa(Op))) continue; // Methods and constants don't get relocated if (!V) { -- cgit v1.2.3