Skip to content

Commit

Permalink
Fix compilation warning #1187
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Apr 26, 2024
1 parent 6e4ef86 commit a9a6f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/llvm_codegen_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ BEValue llvm_emit_assign_expr(GenContext *c, BEValue *ref, Expr *expr, LLVMValue
{
assert(llvm_value_is_addr(ref));

assert(optional || !IS_OPTIONAL(expr) && "Assumed an optional address if it's an optional expression.");
assert((optional || !IS_OPTIONAL(expr)) && "Assumed an optional address if it's an optional expression.");

// Special optimization of handling of optional
if (expr->expr_kind == EXPR_OPTIONAL)
Expand Down

0 comments on commit a9a6f21

Please sign in to comment.