[Mlir-commits] [mlir] Fix a small styling issue in AsmPrinter.cpp (PR #81214)

Abdurrahman Akkas llvmlistbot at llvm.org
Thu Feb 8 17:36:25 PST 2024


https://github.com/abeakkas created https://github.com/llvm/llvm-project/pull/81214

None

>From 23d1a6b98303d8a1aded31c4ea0515f91bbbccca Mon Sep 17 00:00:00 2001
From: Abdurrahman Akkas <abdurrahmanakkas at gmail.com>
Date: Thu, 8 Feb 2024 17:34:56 -0800
Subject: [PATCH] Fix a small styling issue in AsmPrinter.cpp

---
 mlir/lib/IR/AsmPrinter.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index 6b8b7473bf0f8a..6bed90936465c8 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -74,11 +74,9 @@ MLIRContext *AsmParser::getContext() const { return getBuilder().getContext(); }
 /// Parse a type list.
 /// This is out-of-line to work-around https://github.com/llvm/llvm-project/issues/62918
 ParseResult AsmParser::parseTypeList(SmallVectorImpl<Type> &result) {
-    return parseCommaSeparatedList(
-        [&]() { return parseType(result.emplace_back()); });
-  }
-
-
+  return parseCommaSeparatedList(
+      [&]() { return parseType(result.emplace_back()); });
+}
 
 //===----------------------------------------------------------------------===//
 // DialectAsmPrinter



More information about the Mlir-commits mailing list