aboutsummaryrefslogtreecommitdiff
path: root/src/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile.c')
-rw-r--r--src/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile.c b/src/compile.c
index 15853256..79ae73a6 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -1247,7 +1247,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast)
const char *failure = NULL;
switch (expr->tag) {
case And: {
- auto and_ = Match(expr, And);
+ DeclareMatch(and_, ast, And);
return CORD_all(
compile_statement(env, WrapAST(ast, Assert, .expr=and_->lhs, .message=message)),
compile_statement(env, WrapAST(ast, Assert, .expr=and_->rhs, .message=message)));