diff --git a/flang/runtime/time-intrinsic.cpp b/flang/runtime/time-intrinsic.cpp --- a/flang/runtime/time-intrinsic.cpp +++ b/flang/runtime/time-intrinsic.cpp @@ -36,7 +36,7 @@ // This is the fallback implementation, which should work everywhere. template double GetCpuTime(fallback_implementation) { std::clock_t timestamp{std::clock()}; - if (timestamp != std::clock_t{-1}) { + if (timestamp != static_cast(-1)) { return static_cast(timestamp) / CLOCKS_PER_SEC; }