[Mlir-commits] [mlir] 34233d4 - Apply clang-tidy fixes for readability-redundant-smartptr-get in SCF.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Nov 8 16:44:09 PST 2022
Author: Mehdi Amini
Date: 2022-11-09T00:41:30Z
New Revision: 34233d4995a8a999a8351b04a27fe5d5cc84d82c
URL: https://github.com/llvm/llvm-project/commit/34233d4995a8a999a8351b04a27fe5d5cc84d82c
DIFF: https://github.com/llvm/llvm-project/commit/34233d4995a8a999a8351b04a27fe5d5cc84d82c.diff
LOG: Apply clang-tidy fixes for readability-redundant-smartptr-get in SCF.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SCF/IR/SCF.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SCF/IR/SCF.cpp b/mlir/lib/Dialect/SCF/IR/SCF.cpp
index 7c65ff29700f..5f1a20c0dbce 100644
--- a/mlir/lib/Dialect/SCF/IR/SCF.cpp
+++ b/mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -3416,8 +3416,7 @@ parseSwitchCases(OpAsmParser &p, DenseI64ArrayAttr &cases,
SmallVector<int64_t> caseValues;
while (succeeded(p.parseOptionalKeyword("case"))) {
int64_t value;
- Region ®ion =
- *caseRegions.emplace_back(std::make_unique<Region>()).get();
+ Region ®ion = *caseRegions.emplace_back(std::make_unique<Region>());
if (p.parseInteger(value) || p.parseRegion(region, /*arguments=*/{}))
return failure();
caseValues.push_back(value);
More information about the Mlir-commits
mailing list