Skip to content

Commit 2070fcf

Browse files
authored
[CIR] Reindex SideEffect enum to align with upstream (#1697)
1 parent ceb178c commit 2070fcf

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
@@ -3821,11 +3821,11 @@ def DeleteArrayOp : CIR_Op<"delete.array">,
38213821
//===----------------------------------------------------------------------===//
38223822

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

0 commit comments

Comments
 (0)