Skip to content

Commit

Permalink
fixup! [FIRRTL] Remove priority in BlackBoxReader, NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
seldridge committed Aug 23, 2024
1 parent 836291f commit 61a594c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Dialect/FIRRTL/Transforms/BlackBoxReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ void BlackBoxReaderPass::runOnOperation() {
// two blackbox paths. This is the same logic used in `AssignOutputDirs`.
// However, this needs to incorporate filenames that are only available
// _after_ output directories are assigned.
auto *ptr = emittedFileMap.find(annotationInfo.name);
if (ptr == emittedFileMap.end()) {
auto [ptr, inserted] =
emittedFileMap.try_emplace(annotationInfo.name, annotationInfo);
if (inserted) {
emittedFileMap[annotationInfo.name] = annotationInfo;
} else {
auto &fileAttr = ptr->second.outputFileAttr;
Expand Down

0 comments on commit 61a594c

Please sign in to comment.