Skip to content

Commit 8bfdfa1

Browse files
committed
[CIR] Reindex SideEffect enum to align with upstream
1 parent 6140c8d commit 8bfdfa1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3820,11 +3820,11 @@ def DeleteArrayOp : CIR_Op<"delete.array">,
38203820
//===----------------------------------------------------------------------===//
38213821

38223822
def CIR_SideEffect : CIR_I32EnumAttr<
3823-
"SideEffect", "allowed side effects of a function",[
3824-
I32EnumAttrCase<"All", 1, "all">,
3825-
I32EnumAttrCase<"Pure", 2, "pure">,
3826-
I32EnumAttrCase<"Const", 3, "const">
3827-
]> {
3823+
"SideEffect", "allowed side effects of a function", [
3824+
I32EnumAttrCase<"All", 0, "all">,
3825+
I32EnumAttrCase<"Pure", 1, "pure">,
3826+
I32EnumAttrCase<"Const", 2, "const">
3827+
]> {
38283828
let description = [{
38293829
The side effect attribute specifies the possible side effects of the callee
38303830
of a call operation. This is an enumeration attribute and all possible

0 commit comments

Comments
 (0)