Skip to content

Commit ab41d8f

Browse files
AmrDeveloperlanza
authored andcommitted
[NFC][CIR] Remove unnecessary ComplexRangeKind (#1779)
Backporting remove unnecessary ComplexRangeKind
1 parent e9115f6 commit ab41d8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,6 @@ def CIR_ComplexRangeKind : CIR_I32EnumAttr<
15681568
I32EnumAttrCase<"Improved", 1, "improved">,
15691569
I32EnumAttrCase<"Promoted", 2, "promoted">,
15701570
I32EnumAttrCase<"Basic", 3, "basic">,
1571-
I32EnumAttrCase<"None", 4, "none">
15721571
]>;
15731572

15741573
def CIR_ComplexBinOp : CIR_Op<"complex.binop",[

clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,8 @@ getComplexRangeAttr(LangOptions::ComplexRangeKind range) {
800800
case LangOptions::CX_Basic:
801801
return cir::ComplexRangeKind::Basic;
802802
case LangOptions::CX_None:
803-
return cir::ComplexRangeKind::None;
803+
// The default value for ComplexRangeKind is Full if no option is selected
804+
return cir::ComplexRangeKind::Full;
804805
}
805806
}
806807

0 commit comments

Comments
 (0)