Skip to content

Commit c493b8f

Browse files
committed
[FIRRTL] Simplify InstanceInfo logic, NFC
Small change to `InstanceInfo` that uses a boolean value directly as opposed to using the condition. Signed-off-by: Schuyler Eldridge <[email protected]>
1 parent 9172a2d commit c493b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Analysis/FIRRTLInstanceInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ InstanceInfo::InstanceInfo(Operation *op, mlir::AnalysisManager &am) {
144144
cast<InstanceOp>(instanceOp).getLowerToBind()) ||
145145
instanceOp->getParentOfType<LayerBlockOp>();
146146
if (underLayer)
147-
attributes.underLayer.mergeIn(underLayer);
147+
attributes.underLayer.mergeIn(true);
148148
else
149149
attributes.underLayer.mergeIn(parentAttrs.underLayer);
150150

0 commit comments

Comments
 (0)