diff options
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index aa56bc0b2..cc532b9f7 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -237,6 +237,9 @@ String emitEntryPoint( sink->diagnose(SourceLoc(), Diagnostics::unableToGenerateCodeForTarget, getCodeGenTargetName(target)); return String(); } + + // Outside because we want to keep IR in scope whilst we are processing emits + LinkedIR linkedIR; { auto session = targetRequest->getSession(); @@ -248,7 +251,7 @@ String emitEntryPoint( // modules, and also select between the definitions of // any "profile-overloaded" symbols. // - auto linkedIR = linkIR( + linkedIR = linkIR( compileRequest, entryPoint, programLayout, |
