From: Mikko Rasa Date: Sat, 16 Jun 2018 21:16:49 +0000 (+0300) Subject: Apply FunctionResolver again after DeclarationReorderer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f14516331a9b98b1d9d6c9c4e44787167f87a813;p=libs%2Fgl.git 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. --- 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); }