diff --git a/flang/runtime/io-error.cpp b/flang/runtime/io-error.cpp index 02f237f05bea1..b006b82f62249 100644 --- a/flang/runtime/io-error.cpp +++ b/flang/runtime/io-error.cpp @@ -56,9 +56,6 @@ void IoErrorHandler::SignalError(int iostatOrErrno, const char *msg, ...) { #endif ioMsg_ = SaveDefaultCharacter( buffer, Fortran::runtime::strlen(buffer) + 1, *this); -#if !defined(RT_DEVICE_COMPILATION) - va_end(ap); -#endif } } return;