Skip to content

Commit

Permalink
[ExportVerilog] Fix msvc compilation, NFC
Browse files Browse the repository at this point in the history
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Oct 28, 2021
1 parent 8ff609b commit 67bc21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Conversion/ExportVerilog/ExportVerilog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3913,8 +3913,8 @@ void SharedEmitterState::gatherFiles(bool separateModules) {
/// Collect any port marked as being referenced via symbol.
auto collectPorts = [&](auto moduleOp) {
for (size_t p = 0, e = moduleOp.getNumArguments(); p != e; ++p)
for (auto argAttr : moduleOp.getArgAttrs(p))
if (auto sym = argAttr.second.template dyn_cast<FlatSymbolRefAttr>())
for (std::pair<Identifier, Attribute> argAttr : moduleOp.getArgAttrs(p))
if (auto sym = argAttr.second.dyn_cast<FlatSymbolRefAttr>())
symbolCache.addDefinition(moduleOp.getNameAttr(), sym.getValue(),
moduleOp, p);
};
Expand Down

0 comments on commit 67bc21a

Please sign in to comment.