From 92782214168ca9aa1c2f398374a750884019e074 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 26 May 2018 17:46:49 +0200 Subject: [PATCH] [dxbc] Run analyzer before creating compiler object We may need the analysis results when initializing the compiler object. --- src/dxbc/dxbc_module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dxbc/dxbc_module.cpp b/src/dxbc/dxbc_module.cpp index f70ab68e..4ac55266 100644 --- a/src/dxbc/dxbc_module.cpp +++ b/src/dxbc/dxbc_module.cpp @@ -54,13 +54,14 @@ namespace dxvk { m_isgnChunk, m_osgnChunk, analysisInfo); + this->runAnalyzer(analyzer, m_shexChunk->slice()); + DxbcCompiler compiler( fileName, options, m_shexChunk->version(), m_isgnChunk, m_osgnChunk, analysisInfo); - this->runAnalyzer(analyzer, m_shexChunk->slice()); this->runCompiler(compiler, m_shexChunk->slice()); return compiler.finalize();