We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4b41c commit 4f6fabdCopy full SHA for 4f6fabd
clang/lib/Driver/Driver.cpp
@@ -2534,8 +2534,8 @@ enum {
2534
static unsigned PrintActions1(const Compilation &C, Action *A,
2535
std::map<Action *, unsigned> &Ids,
2536
Twine Indent = {}, int Kind = TopLevelAction) {
2537
- if (Ids.count(A)) // A was already visited.
2538
- return Ids[A];
+ if (auto It = Ids.find(A); It != Ids.end()) // A was already visited.
+ return It->second;
2539
2540
std::string str;
2541
llvm::raw_string_ostream os(str);
0 commit comments