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 May 4, 2024
1 parent ac900ef commit d915bbf
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 d915bbf

Please sign in to comment.