From 33c0e670c03c8a03869933c44c20574f3a20243b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 21 Jul 2021 18:53:57 +0200 Subject: [PATCH] :art: Put memoize pragma inside function --- src/emit/emit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index c10167d6..f1ee3c5e 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2461,9 +2461,7 @@ ANN static m_bool emit_stmt_match(const Emitter emit, ANN static m_bool emit_stmt_pp(const Emitter emit, const struct Stmt_PP_ *stmt) { if (stmt->pp_type == ae_pp_pragma) { - if (!strncmp(stmt->data, "memoize", strlen("memoize"))) - emit->info->memoize = strtol(stmt->data + 7, NULL, 10); - else if (!strncmp(stmt->data, "unroll", strlen("unroll"))) + if (!strncmp(stmt->data, "unroll", strlen("unroll"))) emit->info->unroll = strtol(stmt->data + 6, NULL, 10); } else if (stmt->pp_type == ae_pp_include) emit->env->name = stmt->data; -- 2.43.0