Don't die on call instructions, which reference methods

llvm-svn: 1593
This commit is contained in:
Chris Lattner 2002-01-30 23:00:41 +00:00
parent c2fbfc7759
commit 0837ed1d79
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ InstTreeNode<Payload>::InstTreeNode(InstForest<Payload> &IF, Value *V,
if (!isa<Instruction>(V)) { if (!isa<Instruction>(V)) {
assert((isa<Constant>(V) || isa<BasicBlock>(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!"); "Unrecognized value type for InstForest Partition!");
if (isa<Constant>(V)) if (isa<Constant>(V))
getTreeData().first.second = ConstNode; getTreeData().first.second = ConstNode;