summaryrefslogtreecommitdiffstats
path: root/source/compiler-core
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-09-07 10:20:26 -0400
committerGitHub <noreply@github.com>2023-09-07 10:20:26 -0400
commit269282fd3647f1b201d2aae4c82b0c0af16c6420 (patch)
tree632ed29adcce2a7627b0050d08a28eca6be5b79d /source/compiler-core
parent135a5db8d3a7cafa3a43076f8b6f9b8615bd9491 (diff)
Add -repro-fallback-directory (#3188)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/compiler-core')
-rw-r--r--source/compiler-core/slang-dxc-compiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler-core/slang-dxc-compiler.cpp b/source/compiler-core/slang-dxc-compiler.cpp
index 6956a3627..fc42dfc40 100644
--- a/source/compiler-core/slang-dxc-compiler.cpp
+++ b/source/compiler-core/slang-dxc-compiler.cpp
@@ -133,8 +133,8 @@ public:
// If it starts with ./ then attempt to strip it
if (filePath.startsWith("./"))
{
- String remaining(filePath.subString(2, filePath.getLength() - 2));
-
+ const String remaining = filePath.getUnownedSlice().tail(2);
+
// Okay if we strip ./ and what we have is absolute, then it's the absolute path that we care about,
// otherwise we just leave as is.
if (Path::isAbsolute(remaining))