Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
maerhart committed Oct 4, 2024
1 parent a156c90 commit 09f07f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Dialect/DC/Transforms/DCPrintDot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ valueToName(const SmallVector<mlir::Value> &values,
SmallVector<std::pair<mlir::Value, std::string>> res;
for (auto [i, v] : llvm::enumerate(values)) {
auto found = false;
for (const auto [key, value] : currentMap) {
for (const auto &[key, value] : currentMap) {
if (v == key) {
res.push_back({v, value});
found = true;
Expand Down
4 changes: 2 additions & 2 deletions unittests/Dialect/OM/Evaluator/EvaluatorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ TEST(EvaluatorTests, ListConcat) {
auto finalList =
llvm::cast<evaluator::ListValue>(fieldValue.get())->getElements();

ASSERT_EQ(3, finalList.size());
ASSERT_EQ(3U, finalList.size());

ASSERT_EQ(0, llvm::cast<evaluator::AttributeValue>(finalList[0].get())
->getAs<circt::om::IntegerAttr>()
Expand Down Expand Up @@ -1114,7 +1114,7 @@ TEST(EvaluatorTests, ListConcatField) {
auto finalList =
llvm::cast<evaluator::ListValue>(fieldValue.get())->getElements();

ASSERT_EQ(3, finalList.size());
ASSERT_EQ(3U, finalList.size());

ASSERT_EQ(0, llvm::cast<evaluator::AttributeValue>(finalList[0].get())
->getAs<circt::om::IntegerAttr>()
Expand Down

0 comments on commit 09f07f5

Please sign in to comment.