From ebe161211293b008bb1b94c15c6e645088ba31fd Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Mon, 5 Jun 2023 12:16:54 +0200 Subject: [PATCH] Fix crash when using SourceFile.File when the reference no long exists --- include/bolt/CST.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bolt/CST.hpp b/include/bolt/CST.hpp index ef94e9179..f7de9c56c 100644 --- a/include/bolt/CST.hpp +++ b/include/bolt/CST.hpp @@ -2003,7 +2003,7 @@ namespace bolt { public: - TextFile& File; + TextFile File; InferContext* Ctx; std::vector Elements;