summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-31 02:27:26 +0000
committerChris Lattner <sabre@nondot.org>2001-10-31 02:27:26 +0000
commit2a2b531294245b9a97107e4971d41e932f233b54 (patch)
treec020324d1db37ccf15656447fd5300a4feaf66d0 /llvm/lib/Transforms/IPO/InlineSimple.cpp
parent0d5c2955364088c5c51fa1b966cd270aa9097584 (diff)
downloadbcm5719-llvm-2a2b531294245b9a97107e4971d41e932f233b54.tar.gz
bcm5719-llvm-2a2b531294245b9a97107e4971d41e932f233b54.zip
Fix bug when inlining a method that refers to a global variable
llvm-svn: 1056
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/InlineSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index ef92b2d07ca..bc320ee330f 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud