From: Mehdi Amini Date: Mon, 29 Aug 2022 12:10:15 +0000 (+0000) Subject: Apply clang-tidy fixes for llvm-qualified-auto in OpFormatGen.cpp (NFC) X-Git-Tag: upstream/17.0.6~33721 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41182a65a64a79752bcb666f15001ea74ec70fdf;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for llvm-qualified-auto in OpFormatGen.cpp (NFC) --- diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp index 304af57..c8ca809 100644 --- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp +++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp @@ -2468,7 +2468,7 @@ LogicalResult OpFormatParser::verifyAttributeColonType(SMLoc loc, ArrayRef elements) { auto isBase = [](FormatElement *el) { - auto attr = dyn_cast(el); + auto *attr = dyn_cast(el); if (!attr) return false; // Check only attributes without type builders or that are known to call