summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index d7abbff24..f83ea894a 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -6434,7 +6434,9 @@ String emitEntryPoint(
// un-specialized IR.
if (translationUnit->compileRequest->shouldDumpIR)
{
- dumpIR(irModule);
+ ISlangWriter* writer = translationUnit->compileRequest->getWriter(WriterChannel::StdError);
+
+ dumpIR(irModule, writer);
}
// Next, we need to ensure that the code we emit for