From: Mehdi Amini Date: Thu, 3 Nov 2022 20:29:28 +0000 (+0000) Subject: Apply clang-tidy fixes for readability-redundant-smartptr-get in SCF.cpp (NFC) X-Git-Tag: upstream/17.0.6~28168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34233d4995a8a999a8351b04a27fe5d5cc84d82c;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for readability-redundant-smartptr-get in SCF.cpp (NFC) --- diff --git a/mlir/lib/Dialect/SCF/IR/SCF.cpp b/mlir/lib/Dialect/SCF/IR/SCF.cpp index 7c65ff2..5f1a20c 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 caseValues; while (succeeded(p.parseOptionalKeyword("case"))) { int64_t value; - Region ®ion = - *caseRegions.emplace_back(std::make_unique()).get(); + Region ®ion = *caseRegions.emplace_back(std::make_unique()); if (p.parseInteger(value) || p.parseRegion(region, /*arguments=*/{})) return failure(); caseValues.push_back(value);