Skip to content

Commit fa0e529

Browse files
authored
[Flang] Exclude the reference to TIME_UTC for AIX. (#99069)
This PR supersede PR #98915
1 parent bc8a8f5 commit fa0e529

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/runtime/time-intrinsic.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ count_t ConvertTimeSpecToCount(int kind, const struct timespec &tspec) {
139139
}
140140
}
141141

142+
#ifndef _AIX
142143
// This is the fallback implementation, which should work everywhere.
143144
template <typename Unused = void>
144145
count_t GetSystemClockCount(int kind, fallback_implementation) {
@@ -153,6 +154,7 @@ count_t GetSystemClockCount(int kind, fallback_implementation) {
153154
// with the requested kind at the call site.
154155
return ConvertTimeSpecToCount(kind, tspec);
155156
}
157+
#endif
156158

157159
template <typename Unused = void>
158160
count_t GetSystemClockCountRate(int kind, fallback_implementation) {

0 commit comments

Comments
 (0)