summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-30 23:00:41 +0000
committerChris Lattner <sabre@nondot.org>2002-01-30 23:00:41 +0000
commitb1244c54a4fc40db5a006bf6cf7e583faed7773e (patch)
treee5b413192a4e8e3e569dd662f0275dfa99b1fbef /include
parentb9a827ce6360cda67cac382d29d6b9238e837195 (diff)
downloadllvm-b1244c54a4fc40db5a006bf6cf7e583faed7773e.tar.gz
llvm-b1244c54a4fc40db5a006bf6cf7e583faed7773e.tar.bz2
llvm-b1244c54a4fc40db5a006bf6cf7e583faed7773e.tar.xz
Don't die on call instructions, which reference methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/InstForest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h
index 13eb54fa52..efcbf519f6 100644
--- a/include/llvm/Analysis/InstForest.h
+++ b/include/llvm/Analysis/InstForest.h
@@ -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;