summaryrefslogtreecommitdiff
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 1896008b0..355da23b9 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -2224,6 +2224,8 @@ Dictionary<String, IntVal*>& ComponentType::getMangledNameToIntValMap()
ConstantIntVal* ComponentType::tryFoldIntVal(IntVal* intVal)
{
+ auto astBuilder = getLinkage()->getASTBuilder();
+ SLANG_AST_BUILDER_RAII(astBuilder);
return as<ConstantIntVal>(intVal->linkTimeResolve(getMangledNameToIntValMap()));
}