summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-09 13:17:23 +0200
committerAmlal <amlal@nekernel.org>2025-05-09 13:17:23 +0200
commitb4155efdeb3df35080e3e14ab7a618de97164eea (patch)
tree976670a87dc02c5a1ded2af9a8d524a0a2fc8441 /dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
parentd8d943929c25151fd6a8aadd6ea4cdbd5065845a (diff)
dev(cxxdrv): figured out where the segfault comes from, probably the call to Compile who causes the issue.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc')
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
index 344622e..c0dc281 100644
--- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
+++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
@@ -220,11 +220,9 @@ Boolean CompilerFrontendCPlusPlus::Compile(std::string text, std::string file) {
}
}
- auto syntax_tree = LibCompiler::SyntaxLeafList::SyntaxLeaf();
+ static LibCompiler::SyntaxLeafList::SyntaxLeaf syntax_tree;
for (auto& keyword : keywords_list) {
- kStdOut << keyword.second;
-
switch (keyword.first.keyword_kind) {
case LibCompiler::KeywordKind::kKeywordKindClass: {
++kOnClassScope;