diff options
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
| -rw-r--r-- | source/slang/slang-reflection-api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp index 2a3667295..dcfed07b0 100644 --- a/source/slang/slang-reflection-api.cpp +++ b/source/slang/slang-reflection-api.cpp @@ -718,7 +718,8 @@ SLANG_API SlangReflectionType * spReflection_FindTypeByName(SlangReflection * re // when type lookup fails. // Slang::DiagnosticSink sink( - programLayout->getTargetReq()->getLinkage()->getSourceManager()); + programLayout->getTargetReq()->getLinkage()->getSourceManager(), + Lexer::sourceLocationLexer); try { @@ -2560,7 +2561,7 @@ SLANG_API SlangReflectionType* spReflection_specializeType( auto linkage = programLayout->getProgram()->getLinkage(); - DiagnosticSink sink(linkage->getSourceManager()); + DiagnosticSink sink(linkage->getSourceManager(), Lexer::sourceLocationLexer); auto specializedType = linkage->specializeType(unspecializedType, specializationArgCount, (Type* const*) specializationArgs, &sink); |
