Skip to content

Commit a967191

Browse files
committed
[FIRRTL][LowerToHW] Remove an unused variable, NFC
1 parent def39e7 commit a967191

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Conversion/FIRRTLToHW/LowerToHW.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3828,12 +3828,6 @@ LogicalResult FIRRTLLowering::visitDecl(InstanceOp oldInstance) {
38283828
// module.
38293829
SmallVector<PortInfo, 8> portInfo = cast<FModuleLike>(oldModule).getPorts();
38303830

3831-
// Build an index from the name attribute to an index into portInfo, so we
3832-
// can do efficient lookups.
3833-
llvm::SmallDenseMap<Attribute, unsigned> portIndicesByName;
3834-
for (unsigned portIdx = 0, e = portInfo.size(); portIdx != e; ++portIdx)
3835-
portIndicesByName[portInfo[portIdx].name] = portIdx;
3836-
38373831
// Ok, get ready to create the new instance operation. We need to prepare
38383832
// input operands.
38393833
SmallVector<Value, 8> operands;

0 commit comments

Comments
 (0)