Skip to content

Commit

Permalink
[flang] Fix -Wunused-variable in BoxedProcedure.cpp (NFC)
Browse files Browse the repository at this point in the history
llvm-project/flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp:157:12:
error: unused variable 'it' [-Werror,-Wunused-variable]
      auto it = convertedTypes.try_emplace(ty, rec);
           ^
1 error generated.
  • Loading branch information
DamonFool committed Mar 25, 2024
1 parent e1a003d commit b331664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class BoxprocTypeRewriter : public mlir::TypeConverter {
ty.getName().str() + boxprocSuffix.str());
if (rec.isFinalized())
return rec;
auto it = convertedTypes.try_emplace(ty, rec);
[[maybe_unused]] auto it = convertedTypes.try_emplace(ty, rec);
assert(it.second && "expected ty to not be in the map");
std::vector<RecordType::TypePair> ps = ty.getLenParamList();
std::vector<RecordType::TypePair> cs;
Expand Down

0 comments on commit b331664

Please sign in to comment.