mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix bug when inlining a method that refers to a global variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53b20c34dc
commit
4f68528de4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user