================
@@ -156,6 +156,13 @@ LIBC_INLINE struct tm *gmtime_internal(const time_t 
*timer, struct tm *result) {
   return result;
 }
 
+// TODO: localtime is not yet implemented and a temporary solution is to
+//       use gmtime, https://github.com/llvm/llvm-project/issues/107597
+LIBC_INLINE struct tm *localtime(const time_t *timer) {
+  struct tm *result = {0};
----------------
zimirza wrote:

Sure, I have now made `result` `static`. I just noticed that `tm` gets 
intialized in `update_from_seconds`, so there is no need to initialize `result` 
in this function.

https://github.com/llvm/llvm-project/pull/107285
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to