Skip to content

Instantly share code, notes, and snippets.

@dfyz
Created March 8, 2020 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfyz/3e289995e3bc04b7e3cc389d4cd020fd to your computer and use it in GitHub Desktop.
Save dfyz/3e289995e3bc04b7e3cc389d4cd020fd to your computer and use it in GitHub Desktop.
diff --git a/llvm/tools/dsymutil/dsymutil.cpp b/llvm/tools/dsymutil/dsymutil.cpp
index 2801178c605..277abd5dc3a 100644
--- a/llvm/tools/dsymutil/dsymutil.cpp
+++ b/llvm/tools/dsymutil/dsymutil.cpp
@@ -552,7 +552,7 @@ int main(int argc, char **argv) {
const bool Verify = Options.Verify && !Options.LinkOpts.NoOutput;
SmallVector<MachOUtils::ArchAndFile, 4> TempFiles;
- std::atomic_char AllOK(1);
+ std::atomic<int> AllOK(1);
for (auto &Map : *DebugMapPtrsOrErr) {
if (Options.LinkOpts.Verbose || Options.DumpDebugMap)
Map->print(outs());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment