Skip to content

Commit 5bc8d91

Browse files
committed
[clang][DepScan] Include -ivfsoverlay in the strict context hash
Include `-ivfsoverlay` in the strict context hash to avoid non-determinism in scanning.
1 parent 162954a commit 5bc8d91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5113,6 +5113,7 @@ std::string CompilerInvocation::getModuleHash(DiagnosticsEngine &Diags) const {
51135113
if (hsOpts.ModulesStrictContextHash) {
51145114
HBuilder.addRange(hsOpts.SystemHeaderPrefixes);
51155115
HBuilder.addRange(hsOpts.UserEntries);
5116+
HBuilder.addRange(hsOpts.VFSOverlayFiles);
51165117

51175118
const DiagnosticOptions &diagOpts = getDiagnosticOpts();
51185119
#define DIAGOPT(Name, Bits, Default) HBuilder.add(diagOpts.Name);

0 commit comments

Comments
 (0)