From fdf106b543c756eebca7e90fe839fdf1902cc381 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 13 Nov 2024 20:32:29 -0800 Subject: Make `getDependencyFilePath` return most unique identity. (#5553) --- source/slang/slang-compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-compiler.cpp') diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 4126b79eb..c0c2c09c5 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -2722,7 +2722,7 @@ SLANG_NO_THROW char const* SLANG_MCALL Module::getDependencyFilePath(SlangInt32 { SourceFile* sourceFile = getFileDependencies()[index]; return sourceFile->getPathInfo().hasFoundPath() - ? sourceFile->getPathInfo().foundPath.getBuffer() + ? sourceFile->getPathInfo().getMostUniqueIdentity().getBuffer() : nullptr; } -- cgit v1.2.3