From a22d4803bb1d8c51e9eaf263671a60fefb6603f5 Mon Sep 17 00:00:00 2001 From: Rerumu Date: Fri, 5 Nov 2021 17:29:45 -0400 Subject: [PATCH] Move `break` assert before comment --- Compiler/src/Compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Compiler/src/Compiler.cpp b/Compiler/src/Compiler.cpp index 781cf2bd..45d10cc3 100644 --- a/Compiler/src/Compiler.cpp +++ b/Compiler/src/Compiler.cpp @@ -2465,9 +2465,10 @@ struct Compiler } else if (node->is()) { + LUAU_ASSERT(!loops.empty()); + // before exiting out of the loop, we need to close all local variables that were captured in closures since loop start // normally they are closed by the enclosing blocks, including the loop block, but we're skipping that here - LUAU_ASSERT(!loops.empty()); closeLocals(loops.back().localOffset); size_t label = bytecode.emitLabel();