Skip to content

Commit 1a4ee22

Browse files
committed
[FIRRTL] rm InstanceInfoAnalysis templates, NFC
Remove some unneeded `template` keywords that can be avoided by using a more exact type than `auto`. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
1 parent 791f235 commit 1a4ee22

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Analysis/FIRRTLInstanceInfo.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ InstanceInfo::InstanceInfo(Operation *op, mlir::AnalysisManager &am) {
120120

121121
// Visit modules in reverse post-order (visit parents before children) to
122122
// merge parent attributes and per-instance attributes into children.
123-
iGraph.walkInversePostOrder([&](auto &modIt) {
123+
iGraph.walkInversePostOrder([&](igraph::InstanceGraphNode &modIt) {
124124
auto moduleOp = modIt.getModule();
125125
ModuleAttributes &attributes = moduleAttributes[moduleOp];
126126

@@ -151,12 +151,11 @@ InstanceInfo::InstanceInfo(Operation *op, mlir::AnalysisManager &am) {
151151

152152
// Update underLayer.
153153
bool underLayer = false;
154-
if (auto instanceOp = useIt->template getInstance<InstanceOp>())
154+
if (auto instanceOp = useIt->getInstance<InstanceOp>())
155155
underLayer = InstanceInfo::isInstanceUnderLayer(instanceOp);
156156

157157
// Update inInstanceChoice.
158-
if (auto instanceChoiceOp =
159-
useIt->template getInstance<InstanceChoiceOp>()) {
158+
if (auto instanceChoiceOp = useIt->getInstance<InstanceChoiceOp>()) {
160159
attributes.inInstanceChoice.mergeIn(true);
161160
underLayer = isInstanceUnderLayer(instanceChoiceOp);
162161
} else {

0 commit comments

Comments
 (0)