diff options
| author | Yong He <yonghe@outlook.com> | 2019-03-10 09:38:20 -0700 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-03-10 09:38:20 -0700 |
| commit | d5492155d6d8b16f262c09f72d8653e3e675b616 (patch) | |
| tree | cccaa41ea4d61351e802cf8b5137f69b1bfce13e /source/slang/reflection.cpp | |
| parent | 4f94dd46a2d885e570814dd14a5e46f8e0814802 (diff) | |
Fix `spReflection_FindTypeByName` (#891)
Diffstat (limited to 'source/slang/reflection.cpp')
| -rw-r--r-- | source/slang/reflection.cpp | 3 |
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(); } |
