]> git.tdb.fi Git - libs/gl.git/commitdiff
Apply FunctionResolver again after DeclarationReorderer
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Jun 2018 21:16:49 +0000 (00:16 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Jun 2018 21:16:49 +0000 (00:16 +0300)
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

index 0aed5936af82948eb1c040621e61b7dea83b2b18..5bb84269f30abe4fcd38198cef0b6a2ae416b2f8 100644 (file)
@@ -208,6 +208,7 @@ void ProgramCompiler::generate(Stage &stage)
        apply<InterfaceGenerator>(stage);
        apply<VariableResolver>(stage);
        apply<DeclarationReorderer>(stage);
+       apply<FunctionResolver>(stage);
        apply<LegacyConverter>(stage);
 }