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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index df07a7637..613fb7090 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -5099,6 +5099,8 @@ RefPtr<EntryPoint> Module::findAndCheckEntryPoint(
if (auto existingEntryPoint = findEntryPointByName(name))
return existingEntryPoint;
+ SLANG_AST_BUILDER_RAII(m_astBuilder);
+
// If the function hasn't been marked as [shader], then it won't be discovered
// by findEntryPointByName. We need to route this to the `findAndValidateEntryPoint`
// function. To do that we need to setup a FrontEndCompileRequest and a