Skip to content

Commit cc7dd9d

Browse files
committed
Remove the None option and set default to FULL similar to OCG
1 parent bc5eb7c commit cc7dd9d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,6 @@ def CIR_ComplexRangeKind : CIR_I32EnumAttr<
28332833
I32EnumAttrCase<"Improved", 1, "improved">,
28342834
I32EnumAttrCase<"Promoted", 2, "promoted">,
28352835
I32EnumAttrCase<"Basic", 3, "basic">,
2836-
I32EnumAttrCase<"None", 4, "none">
28372836
]>;
28382837

28392838
def CIR_ComplexMulOp : CIR_Op<"complex.mul", [

clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ getComplexRangeAttr(LangOptions::ComplexRangeKind range) {
651651
case LangOptions::CX_Basic:
652652
return cir::ComplexRangeKind::Basic;
653653
case LangOptions::CX_None:
654-
return cir::ComplexRangeKind::None;
654+
return cir::ComplexRangeKind::Full;
655655
}
656656
}
657657

clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void LoweringPreparePass::runOnOperation() {
423423
llvm::SmallVector<mlir::Operation *> opsToTransform;
424424

425425
op->walk([&](mlir::Operation *op) {
426-
if (mlir::isa<cir::ArrayCtor, cir::ArrayDtor, cir::CastOp, ,
426+
if (mlir::isa<cir::ArrayCtor, cir::ArrayDtor, cir::CastOp,
427427
cir::ComplexMulOp, cir::UnaryOp>(op))
428428
opsToTransform.push_back(op);
429429
});

0 commit comments

Comments
 (0)