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

llvm-svn: 1056
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index ef92b2d..bc320ee 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp
@@ -40,8 +40,8 @@
   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;