diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index ef92b2d07ca..bc320ee330f 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -40,8 +40,8 @@ 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 && (isa(Op) || isa(Op))) - continue; // Methods and constants don't get relocated + if (!V && (isa(Op) || isa(Op))) + continue; // Globals and constants don't get relocated if (!V) { cerr << "Val = " << endl << Op << "Addr = " << (void*)Op << endl;