diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/compiler-core/slang-nvrtc-compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/compiler-core/slang-nvrtc-compiler.cpp b/source/compiler-core/slang-nvrtc-compiler.cpp index f5014acbc..11ef746f6 100644 --- a/source/compiler-core/slang-nvrtc-compiler.cpp +++ b/source/compiler-core/slang-nvrtc-compiler.cpp @@ -484,7 +484,7 @@ static SlangResult _findNVRTC(NVRTCPathVisitor& visitor) StringSlicePool pool(StringSlicePool::Style::Empty); // We are going to search the paths in order - for (const auto path : paths) + for (const auto& path : paths) { // PATH can have the same path multiple times. If we have already searched this path, we don't need to again if (!pool.has(path)) |
