From f14516331a9b98b1d9d6c9c4e44787167f87a813 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 17 Jun 2018 00:16:49 +0300 Subject: [PATCH] Apply FunctionResolver again after DeclarationReorderer Function calls that referred to declarations before need to be updated in case the definition was moved to before the call site. --- source/programcompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 0aed5936..5bb84269 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -208,6 +208,7 @@ void ProgramCompiler::generate(Stage &stage) apply(stage); apply(stage); apply(stage); + apply(stage); apply(stage); } -- 2.45.2