summaryrefslogtreecommitdiff
path: root/source/slang/reflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/reflection.cpp')
-rw-r--r--source/slang/reflection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/reflection.cpp b/source/slang/reflection.cpp
index f9c704437..3b3306084 100644
--- a/source/slang/reflection.cpp
+++ b/source/slang/reflection.cpp
@@ -592,7 +592,8 @@ SLANG_API SlangReflectionType * spReflection_FindTypeByName(SlangReflection * re
// when type lookup fails.
//
Slang::DiagnosticSink sink;
-
+
+ sink.sourceManager = programLayout->getTargetReq()->getLinkage()->getSourceManager();;
RefPtr<Type> result = program->getTypeFromString(name, &sink);
return (SlangReflectionType*)result.Ptr();
}