1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix bug when inlining a method that refers to a global variable

llvm-svn: 1056
This commit is contained in:
Chris Lattner 2001-10-31 02:27:26 +00:00
parent 396a23cffb
commit 98ce708757

View File

@ -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<Method>(Op) || isa<ConstPoolVal>(Op)))
continue; // Methods and constants don't get relocated
if (!V && (isa<GlobalValue>(Op) || isa<ConstPoolVal>(Op)))
continue; // Globals and constants don't get relocated
if (!V) {
cerr << "Val = " << endl << Op << "Addr = " << (void*)Op << endl;