Skip to content

Commit

Permalink
Make getDependencyFilePath return most unique identity. (#5553)
Browse files Browse the repository at this point in the history
  • Loading branch information
csyonghe authored Nov 14, 2024
1 parent e0d03da commit fdf106b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/slang/slang-compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion source/slang/slang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6890,7 +6890,7 @@ char const* EndToEndCompileRequest::getDependencyFilePath(int index)
auto program = frontEndReq->getGlobalAndEntryPointsComponentType();
SourceFile* sourceFile = program->getFileDependencies()[index];
return sourceFile->getPathInfo().hasFoundPath()
? sourceFile->getPathInfo().foundPath.getBuffer()
? sourceFile->getPathInfo().getMostUniqueIdentity().getBuffer()
: "unknown";
}

Expand Down

0 comments on commit fdf106b

Please sign in to comment.