Skip to content

Commit 475e736

Browse files
[MemProf] Include <ctime> to avoid MSVC failure (#114246)
My change in bb39151 added a call to std::time which worked generally as there must be some transitive include of <ctime>. However, I saw one MSVC bot failure: InstrProfWriter.cpp(202): error C2039: 'time': is not a member of 'std' from https://lab.llvm.org/buildbot/#/builders/63/builds/2325. Presumably explictly including <ctime> should fix this.
1 parent 7d1e283 commit 475e736

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/ProfileData/InstrProfWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "llvm/Support/OnDiskHashTable.h"
3030
#include "llvm/Support/raw_ostream.h"
3131
#include <cstdint>
32+
#include <ctime>
3233
#include <memory>
3334
#include <string>
3435
#include <tuple>

0 commit comments

Comments
 (0)