Skip to content

Commit

Permalink
Make gcGuard const
Browse files Browse the repository at this point in the history
  • Loading branch information
john-z-yang committed Dec 9, 2023
1 parent 80f2cfd commit 4905425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/Compiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Compiler {
using Visitor = std::function<void(const sexpr::SExpr *)>;

runtime::VM &vm;
std::optional<runtime::GCGuard> gcGuard;
const std::optional<runtime::GCGuard> gcGuard;
const std::optional<std::reference_wrapper<Compiler>> enclosing;

std::vector<std::string> source;
Expand Down

0 comments on commit 4905425

Please sign in to comment.