From 15efb73aae8ab2220f920a4534e6ea54f29c8c45 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 17 Oct 2020 21:55:22 +0300 Subject: [PATCH] Add assert in build_function_asm to not ignore errors --- Utilities/JIT.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/JIT.h b/Utilities/JIT.h index ac26c2392e..fafcae8d1b 100644 --- a/Utilities/JIT.h +++ b/Utilities/JIT.h @@ -89,6 +89,7 @@ inline FT build_function_asm(F&& builder) X86Assembler compiler(&code); builder(std::ref(compiler), args); + ASSERT(compiler.getLastError() == 0); FT result;