mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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
This commit is contained in:
parent
b9a827ce63
commit
b1244c54a4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user