Don't die on call instructions, which reference methods
llvm-svn: 1593
This commit is contained in:
parent
c2fbfc7759
commit
0837ed1d79
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue