mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
bug 122:
remove redundant isa<GlobalValue> ensure isa<GlobalValue> case is processed before is<Constant> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -242,10 +242,12 @@ InstTreeNode<Payload>::InstTreeNode(InstForest<Payload> &IF, Value *V,
|
||||
this->getTreeData().first.first = V; // Save tree node
|
||||
|
||||
if (!isa<Instruction>(V)) {
|
||||
assert((isa<Constant>(V) || isa<BasicBlock>(V) ||
|
||||
isa<Argument>(V) || isa<GlobalValue>(V)) &&
|
||||
assert(isa<Constant>(V) || isa<BasicBlock>(V) || isa<Argument>(V) &&
|
||||
"Unrecognized value type for InstForest Partition!");
|
||||
if (isa<Constant>(V))
|
||||
if (isa<GlobalValue>(V))
|
||||
this->getTreeData().first.second = TemporaryNode;
|
||||
else
|
||||
this->getTreeData().first.second = ConstNode;
|
||||
else if (isa<BasicBlock>(V))
|
||||
this->getTreeData().first.second = BasicBlockNode;
|
||||
|
Reference in New Issue
Block a user