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 d570409 commit 9ffce95Copy full SHA for 9ffce95
llvm/tools/llvm-lto2/llvm-lto2.cpp
@@ -394,8 +394,7 @@ static int run(int argc, char **argv) {
394
// behavior. Instead, we don't exit in the multi-threaded case, but we make
395
// sure to report the error and then at the end (after joining cleanly)
396
// exit(1).
397
- std::atomic<bool> HasErrors;
398
- std::atomic_init(&HasErrors, false);
+ std::atomic<bool> HasErrors{false};
399
Conf.DiagHandler = [&](const DiagnosticInfo &DI) {
400
DiagnosticPrinterRawOStream DP(errs());
401
DI.print(DP);
0 commit comments