projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5865c8
)
Apply clang-tidy fixes for readability-redundant-smartptr-get in SCF.cpp (NFC)
author
Mehdi Amini
<joker.eph@gmail.com>
Thu, 3 Nov 2022 20:29:28 +0000
(20:29 +0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Wed, 9 Nov 2022 00:41:30 +0000
(
00:41
+0000)
mlir/lib/Dialect/SCF/IR/SCF.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Dialect/SCF/IR/SCF.cpp
b/mlir/lib/Dialect/SCF/IR/SCF.cpp
index
7c65ff2
..
5f1a20c
100644
(file)
--- 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);