mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix for MSVC
This commit is contained in:
@@ -4308,7 +4308,11 @@ static inline void llvm_emit_elvis_expr(GenContext *c, BEValue *value, Expr *exp
|
|||||||
|
|
||||||
void gencontext_emit_ternary_expr(GenContext *c, BEValue *value, Expr *expr)
|
void gencontext_emit_ternary_expr(GenContext *c, BEValue *value, Expr *expr)
|
||||||
{
|
{
|
||||||
if (!expr->ternary_expr.then_expr) return llvm_emit_elvis_expr(c, value, expr);
|
if (!expr->ternary_expr.then_expr)
|
||||||
|
{
|
||||||
|
llvm_emit_elvis_expr(c, value, expr);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set up basic blocks, following Cone
|
// Set up basic blocks, following Cone
|
||||||
LLVMBasicBlockRef phi_block = llvm_basic_block_new(c, "cond.phi");
|
LLVMBasicBlockRef phi_block = llvm_basic_block_new(c, "cond.phi");
|
||||||
|
|||||||
Reference in New Issue
Block a user