File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
include/clang/CIR/Dialect/IR
lib/CIR/Dialect/Transforms Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ def TernaryOp : CIR_Op<"ternary",
1264
1264
Example:
1265
1265
1266
1266
```mlir
1267
- // x = cond ? a : b;
1267
+ // cond = a && b;
1268
1268
1269
1269
%x = cir.ternary (%cond, true_region {
1270
1270
...
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class CIRTernaryOpFlattening : public mlir::OpRewritePattern<cir::TernaryOp> {
270
270
// when relevant.
271
271
if (op->getResultTypes ().size ())
272
272
locs.push_back (loc);
273
- auto *continueBlock =
273
+ Block *continueBlock =
274
274
rewriter.createBlock (remainingOpsBlock, op->getResultTypes (), locs);
275
275
rewriter.create <cir::BrOp>(loc, remainingOpsBlock);
276
276
@@ -290,7 +290,7 @@ class CIRTernaryOpFlattening : public mlir::OpRewritePattern<cir::TernaryOp> {
290
290
falseBlock = &falseRegion.front ();
291
291
mlir::Operation *falseTerminator = falseRegion.back ().getTerminator ();
292
292
rewriter.setInsertionPointToEnd (&falseRegion.back ());
293
- cir::YieldOp falseYieldOp = dyn_cast<cir::YieldOp>(falseTerminator);
293
+ auto falseYieldOp = dyn_cast<cir::YieldOp>(falseTerminator);
294
294
rewriter.replaceOpWithNewOp <cir::BrOp>(falseYieldOp, falseYieldOp.getArgs (),
295
295
continueBlock);
296
296
rewriter.inlineRegionBefore (falseRegion, continueBlock);
You can’t perform that action at this time.
0 commit comments