Skip to content

Commit d096f45

Browse files
[clang-scan-deps] Avoid repeated map lookups (NFC) (#127023)
1 parent f30c891 commit d096f45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/tools/clang-scan-deps/ClangScanDeps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ class ResourceDirectoryCache {
308308
return "";
309309
StringRef Output = OutputBuf.get()->getBuffer().rtrim('\n');
310310

311-
Cache[ClangBinaryPath] = Output.str();
312-
return Cache[ClangBinaryPath];
311+
return Cache[ClangBinaryPath] = Output.str();
313312
}
314313

315314
private:

0 commit comments

Comments
 (0)