From 4905425ddbc348094106832fa30c50444a65ce40 Mon Sep 17 00:00:00 2001 From: John Yang Date: Sat, 9 Dec 2023 13:51:57 -0800 Subject: [PATCH] Make gcGuard const --- src/compile/Compiler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/Compiler.hpp b/src/compile/Compiler.hpp index 04faf8d..4de3e82 100644 --- a/src/compile/Compiler.hpp +++ b/src/compile/Compiler.hpp @@ -37,7 +37,7 @@ class Compiler { using Visitor = std::function; runtime::VM &vm; - std::optional gcGuard; + const std::optional gcGuard; const std::optional> enclosing; std::vector source;