Don't die on call instructions, which reference methods
authorChris Lattner <sabre@nondot.org>
Wed, 30 Jan 2002 23:00:41 +0000 (23:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Jan 2002 23:00:41 +0000 (23:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1593 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InstForest.h

index 13eb54fa52cb3de0a2012723b4ecd6ac5f33b7db..efcbf519f6682aa7fd5ef4b9799e5560654afb36 100644 (file)
@@ -235,7 +235,7 @@ InstTreeNode<Payload>::InstTreeNode(InstForest<Payload> &IF, Value *V,
  
   if (!isa<Instruction>(V)) {
     assert((isa<Constant>(V) || isa<BasicBlock>(V) ||
-           isa<MethodArgument>(V) || isa<GlobalVariable>(V)) &&
+           isa<MethodArgument>(V) || isa<GlobalValue>(V)) &&
           "Unrecognized value type for InstForest Partition!");
     if (isa<Constant>(V))
       getTreeData().first.second = ConstNode;