================
@@ -1860,7 +1861,7 @@ def CIR_IsConstantOp : CIR_Op<"is_constant", [Pure]> {
def CIR_SwitchFlatOp : CIR_Op<"switch.flat", [
DeclareOpInterfaceMethods<BranchOpInterface, ["getSuccessorForOperands"]>,
- AttrSizedOperandSegments, Terminator
+ AttrSizedOperandSegments, Pure, Terminator
----------------
xlauko wrote:
This makes sense: it matches `cir.br`/`cir.brcond` and `cf.switch`.
https://github.com/llvm/llvm-project/pull/242180
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits