From 15a4e23b225e276674a554be93f28b5c1bc0f1cf Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 18 Aug 2024 22:29:41 +0200 Subject: [PATCH] Benchmark / test no longer suppresses debug info. #1364 --- releasenotes.md | 1 + src/compiler/llvm_codegen.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/releasenotes.md b/releasenotes.md index a918150fc..8fe68282b 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -77,6 +77,7 @@ - Missing check on optional left hand side for `s.x`. - Incorrect zero analysis on `foo["test"] = {}` #1360. - Bug converting untyped list #1360. +- Benchmark / test no longer suppresses debug info. #1364. ### Stdlib changes diff --git a/src/compiler/llvm_codegen.c b/src/compiler/llvm_codegen.c index a8ce4bbef..1208322f8 100644 --- a/src/compiler/llvm_codegen.c +++ b/src/compiler/llvm_codegen.c @@ -1304,7 +1304,6 @@ INLINE GenContext *llvm_gen_tests(Module** modules, unsigned module_count, LLVMC Module *test_module = compiler_find_or_create_module(test_path, NULL); GenContext *c = cmalloc(sizeof(GenContext)); - compiler.build.debug_info = DEBUG_INFO_NONE; gencontext_init(c, test_module, shared_context); gencontext_begin_module(c); @@ -1403,7 +1402,6 @@ INLINE GenContext *llvm_gen_benchmarks(Module** modules, unsigned module_count, Module *benchmark_module = compiler_find_or_create_module(benchmark_path, NULL); GenContext *c = cmalloc(sizeof(GenContext)); - compiler.build.debug_info = DEBUG_INFO_NONE; gencontext_init(c, benchmark_module, shared_context); gencontext_begin_module(c);