mirror of https://github.com/llvm/circt.git
[FIRRTL] Only resolve symbol once per instance
This commit is contained in:
parent
216e07fdc4
commit
e29ecdae62
|
@ -168,9 +168,9 @@ public:
|
|||
void visitDecl(InstanceOp op) {
|
||||
// Track any instance inputs which need to be connected to for init
|
||||
// coverage.
|
||||
auto ref = op.getReferencedModule();
|
||||
for (auto result : llvm::enumerate(op.results()))
|
||||
if (op.getReferencedModule().getPortDirection(result.index()) ==
|
||||
Direction::Output)
|
||||
if (ref.getPortDirection(result.index()) == Direction::Output)
|
||||
declareSinks(result.value(), Flow::Source);
|
||||
else
|
||||
declareSinks(result.value(), Flow::Sink);
|
||||
|
|
Loading…
Reference in New Issue