Skip to content

Commit

Permalink
[MemProf] Include <ctime> to avoid MSVC failure (#114246)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
teresajohnson authored Oct 30, 2024
1 parent 7d1e283 commit 475e736
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/ProfileData/InstrProfWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "llvm/Support/OnDiskHashTable.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdint>
#include <ctime>
#include <memory>
#include <string>
#include <tuple>
Expand Down

0 comments on commit 475e736

Please sign in to comment.