diff options
Diffstat (limited to 'source/compiler-core')
| -rw-r--r-- | source/compiler-core/slang-spirv-core-grammar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/compiler-core/slang-spirv-core-grammar.h b/source/compiler-core/slang-spirv-core-grammar.h index 7fe8f6cd7..958aaaef2 100644 --- a/source/compiler-core/slang-spirv-core-grammar.h +++ b/source/compiler-core/slang-spirv-core-grammar.h @@ -16,7 +16,8 @@ namespace Slang struct SPIRVCoreGrammarInfo : public RefObject { static RefPtr<SPIRVCoreGrammarInfo> loadFromJSON(SourceView& source, DiagnosticSink& sink); - static RefPtr<SPIRVCoreGrammarInfo> getEmbeddedVersion(); + static RefPtr<SPIRVCoreGrammarInfo>& getEmbeddedVersion(); + static inline void freeEmbeddedGrammerInfo() { getEmbeddedVersion() = nullptr; } template<typename K, typename T> struct Lookup |
