diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-31 02:27:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-31 02:27:26 +0000 |
commit | 4f68528de4d3f9746bb93ad3b58e86a7ae353491 (patch) | |
tree | c84868ac7d6b919d04c3fbbdcac0dc0bd741fd0e /lib/Transforms/IPO/InlineSimple.cpp | |
parent | 53b20c34dc07d38683983afc2ad9d9170cffe9bd (diff) | |
download | llvm-4f68528de4d3f9746bb93ad3b58e86a7ae353491.tar.gz llvm-4f68528de4d3f9746bb93ad3b58e86a7ae353491.tar.bz2 llvm-4f68528de4d3f9746bb93ad3b58e86a7ae353491.tar.xz |
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
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index ef92b2d07c..bc320ee330 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<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; |