Skip to content

Commit 604aba0

Browse files
committed
[mlir] Fix -Wunused-variable warning in AsmParserState.cpp (NFC)
/data/llvm-project/mlir/lib/AsmParser/AsmParserState.cpp:293:8: error: unused variable '[it, inserted]' [-Werror,-Wunused-variable] auto [it, inserted] = ^ 1 error generated.
1 parent a5b584d commit 604aba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/AsmParser/AsmParserState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void AsmParserState::addAttrAliasDefinition(StringRef name, SMRange location) {
290290
}
291291

292292
void AsmParserState::addTypeAliasDefinition(StringRef name, SMRange location) {
293-
auto [it, inserted] =
293+
[[maybe_unused]] auto [it, inserted] =
294294
impl->typeAliasToIdx.try_emplace(name, impl->typeAliases.size());
295295
assert(inserted && "unexpected attribute alias redefinition");
296296
impl->typeAliases.push_back(

0 commit comments

Comments
 (0)