Skip to content

Commit

Permalink
[Chrono] Add missing include <ratio>.
Browse files Browse the repository at this point in the history
The file uses std::ratio without including the correct header.
Previously ratio was indirectly provided through chrono in libc++ but
that's not the case any longer.

This should fix a build failure with modules enabled:
https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/5185/console
  • Loading branch information
fhahn committed Jan 18, 2022
1 parent 65fbe38 commit ab6e9a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/Support/Chrono.h
Expand Up @@ -14,6 +14,7 @@

#include <chrono>
#include <ctime>
#include <ratio>

namespace llvm {

Expand Down

0 comments on commit ab6e9a4

Please sign in to comment.