[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.
This commit is contained in:
David Spickett 2022-08-16 13:50:37 +00:00
parent 65d83ba343
commit b812db1464
1 changed files with 1 additions and 0 deletions

View File

@ -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)); }