diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-10 03:49:38 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-10 19:49:38 +0800 |
| commit | 89bf795f105ebe2703ee74a021e16786990ca7b2 (patch) | |
| tree | 59f9900680f40c6bd91a4511cdab032840c98336 /source/slang/slang.cpp | |
| parent | b0dfb1aef2cd5483f59b858c8921707174ffdf2d (diff) | |
Fix a crash when search for files. (#5818)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e4de61276..9e9b5fbe3 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4257,7 +4257,7 @@ SourceFile* Linkage::findFile(Name* name, SourceLoc loc, IncludeSystem& outInclu // Next, try to find the file of the given name, // using our ordinary include-handling logic. - auto searchDirs = getSearchDirectories(); + auto& searchDirs = getSearchDirectories(); outIncludeSystem = IncludeSystem(&searchDirs, getFileSystemExt(), getSourceManager()); // Get the original path info |
