[llvm] b812db1 - [LLVM][Debuginfod] Add missing thread include

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 06:56:44 PDT 2022


Author: David Spickett
Date: 2022-08-16T13:56:23Z
New Revision: b812db146477f8f7d16be7feb450d3225038e125

URL: https://github.com/llvm/llvm-project/commit/b812db146477f8f7d16be7feb450d3225038e125
DIFF: https://github.com/llvm/llvm-project/commit/b812db146477f8f7d16be7feb450d3225038e125.diff

LOG: [LLVM][Debuginfod] Add missing thread include

One of our silent bots is currently failing:
https://lab.llvm.org/staging/#/builders/171/builds/169

With:
<...>/Debuginfod.cpp:298:23: error: no type named 'sleep_for' in namespace 'std::this_thread'
    std::this_thread::sleep_for(Interval);
    ~~~~~~~~~~~~~~~~~~^

Add missing thread include to that file,
which is what all the other users of sleep_for do.

I think we are seeing this now because we disabled
llvm threading for this builder. Maybe debuginfod should account
for that but that's for another time.

Added: 
    

Modified: 
    llvm/lib/Debuginfod/Debuginfod.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Debuginfod/Debuginfod.cpp b/llvm/lib/Debuginfod/Debuginfod.cpp
index ef4e11ca38e6e..29fdd6ffb48bc 100644
--- a/llvm/lib/Debuginfod/Debuginfod.cpp
+++ b/llvm/lib/Debuginfod/Debuginfod.cpp
@@ -40,6 +40,7 @@
 #include "llvm/Support/xxhash.h"
 
 #include <atomic>
+#include <thread>
 
 namespace llvm {
 static std::string uniqueKey(llvm::StringRef S) { return utostr(xxHash64(S)); }


        


More information about the llvm-commits mailing list