Skip to content

Commit 42cf136

Browse files
remove auto and fix compile bug.
1 parent 7b181d8 commit 42cf136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/examples/dataflow/lib/Analysis/MetadataAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MetadataLatticeValue::join(const MetadataLatticeValue &lhs,
3434
// directly insert the metadata of rhs into the metadata of lhs.If lhs and rhs
3535
// have overlapping attributes, keep the attribute value in lhs unchanged.
3636
MetadataLatticeValue result;
37-
for (auto &&lhsIt : lhs.metadata) {
37+
for (const llvm::StringMapEntry<mlir::Attribute> &lhsIt : lhs.metadata) {
3838
result.metadata.insert(
3939
std::pair<StringRef, Attribute>(lhsIt.getKey(), lhsIt.getValue()));
4040
}
@@ -99,7 +99,7 @@ LogicalResult MetadataAnalysis::visitOperation(
9999
isChanged |= result->join(latticeValue);
100100

101101
// All lattice of operands of op are joined to the lattice of result.
102-
for (MetadataLatticeValueLattice *operand : operands)
102+
for (const MetadataLatticeValueLattice *operand : operands)
103103
isChanged |= result->join(*operand);
104104

105105
propagateIfChanged(result, isChanged);

0 commit comments

Comments
 (0)