[clang] [CIR] Upstream lowering of conditional operators to TernaryOp (PR #138156)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed May 28 10:58:40 PDT 2025
================
@@ -1195,6 +1197,93 @@ Address CIRGenFunction::emitArrayToPointerDecay(const Expr *e) {
return Address(ptr, addr.getAlignment());
}
+/// Emit the operand of a glvalue conditional operator. This is either a glvalue
+/// or a (possibly-parenthesized) throw-expression. If this is a throw, no
+/// LValue is returned and the current block has been terminated.
+static std::optional<LValue> emitLValueOrThrowExpression(CIRGenFunction &cgf,
----------------
andykaylor wrote:
Is this being used in this PR?
https://github.com/llvm/llvm-project/pull/138156
More information about the cfe-commits
mailing list