We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfc3a5 commit c9202fdCopy full SHA for c9202fd
lib/Conversion/FIRRTLToHW/LowerToHW.cpp
@@ -3709,7 +3709,7 @@ LogicalResult FIRRTLLowering::visitDecl(InstanceOp oldInstance) {
3709
3710
if (newInstance.getInnerSymAttr())
3711
if (auto forceName = circuitState.instanceForceNames.lookup(
3712
- {cast<hw::HWModuleOp>(newInstance->getParentOp()).getNameAttr(),
+ {newInstance->getParentOfType<hw::HWModuleOp>().getNameAttr(),
3713
newInstance.getInnerNameAttr()}))
3714
newInstance->setAttr("hw.verilogName", forceName);
3715
0 commit comments