[Mlir-commits] [mlir] 491b4e1 - [IR] Remove redundant return statements (NFC)
Kazu Hirata
llvmlistbot at llvm.org
Sat Jan 1 09:14:41 PST 2022
Author: Kazu Hirata
Date: 2022-01-01T09:14:21-08:00
New Revision: 491b4e1faaaffbf966f94ed61aba338988f4f3cc
URL: https://github.com/llvm/llvm-project/commit/491b4e1faaaffbf966f94ed61aba338988f4f3cc
DIFF: https://github.com/llvm/llvm-project/commit/491b4e1faaaffbf966f94ed61aba338988f4f3cc.diff
LOG: [IR] Remove redundant return statements (NFC)
Identified by readability-redundant-control-flow.
Added:
Modified:
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index f5bb64b0f911..90909582b2e5 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -1359,7 +1359,6 @@ static void printAtomicReadOp(OpAsmPrinter &p, AtomicReadOp op) {
if (op.hintAttr())
printSynchronizationHint(p << " ", op, op.hintAttr());
p << ": " << op.address().getType() << " -> " << op.getType();
- return;
}
/// Verifier for AtomicReadOp
@@ -1409,7 +1408,6 @@ static void printAtomicWriteOp(OpAsmPrinter &p, AtomicWriteOp op) {
if (op.hintAttr())
printSynchronizationHint(p, op, op.hintAttr());
p << ": " << op.address().getType() << ", " << op.value().getType();
- return;
}
/// Verifier for AtomicWriteOp
More information about the Mlir-commits
mailing list