summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index e76ff7436..b616eb555 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -763,7 +763,7 @@ SlangResult Session::_readBuiltinModule(
// to deserialize the IR module.
//
RefPtr<IRModule> irModule;
- SLANG_RETURN_ON_FAIL(decodeModuleIR(irModule, irChunk, this, sourceLocReader));
+ readSerializedModuleIR(irChunk, this, sourceLocReader, irModule);
irModule->setName(module->getNameObj());
module->setIRModule(irModule);
@@ -6801,7 +6801,7 @@ SlangResult Linkage::loadSerializedModuleContents(
module->setModuleDecl(moduleDecl);
RefPtr<IRModule> irModule;
- SLANG_RETURN_ON_FAIL(decodeModuleIR(irModule, irChunk, session, sourceLocReader));
+ readSerializedModuleIR(irChunk, session, sourceLocReader, irModule);
module->setIRModule(irModule);
// The handling of file dependencies is complicated, because of