[clang] [CIR] Add is_implicit to ReturnOp (PR #174832)
Hendrik Hübner via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 07:27:35 PST 2026
================
@@ -714,10 +714,12 @@ def CIR_ReturnOp : CIR_Op<"return", [
// The return operation takes an optional input operand to return. This
// value must match the return type of the enclosing function.
- let arguments = (ins Variadic<CIR_AnyType>:$input);
+ let arguments = (ins Variadic<CIR_AnyType>:$input, UnitProp:$is_implicit);
----------------
HendrikHuebner wrote:
Could you update the description of `ReturnOp` with a short explanation of `is_implicit`?
This is only set for non-void functions missing return statements in C, right?
https://github.com/llvm/llvm-project/pull/174832
More information about the cfe-commits
mailing list