Skip to content

Commit 9a2f4bb

Browse files
kazutakahiratasivan-shani
authored andcommitted
[clang-scan-deps] Avoid repeated map lookups (NFC) (llvm#127023)
1 parent a4e18e0 commit 9a2f4bb

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)