projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b20c3
)
Fix bug when inlining a method that refers to a global variable
author
Chris Lattner
<sabre@nondot.org>
Wed, 31 Oct 2001 02:27:26 +0000
(
02:27
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 31 Oct 2001 02:27:26 +0000
(
02:27
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1056
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/InlineSimple.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/InlineSimple.cpp
b/lib/Transforms/IPO/InlineSimple.cpp
index ef92b2d07cad7d042e8592900670d9b0df20b437..bc320ee330f1a62b1def46d299f18e9026ba848b 100644
(file)
--- 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; //
Method
s and constants don't get relocated
+ if (!V && (isa<
GlobalValue
>(Op) || isa<ConstPoolVal>(Op)))
+ continue; //
Global
s and constants don't get relocated
if (!V) {
cerr << "Val = " << endl << Op << "Addr = " << (void*)Op << endl;