Skip to content

Commit 1357084

Browse files
committed
Update TextDiagnosticPrinter.cpp
1 parent 6bc5553 commit 1357084

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Frontend/TextDiagnosticPrinter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,9 @@ void TextDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level,
117117
// Filter out 'win-sdk' warnings that are not needed.
118118
auto LocationStr =
119119
Info.getLocation().printToString(Info.getSourceManager());
120-
for (auto &Str : WinSDKWarningList) {
121-
if (LocationStr.find(Str) != std::string::npos) {
120+
for (auto &Str : WinSDKWarningList)
121+
if (LocationStr.find(Str) != std::string::npos)
122122
return;
123-
}
124-
}
125123
}
126124
#endif
127125

0 commit comments

Comments
 (0)