From: Siva Chandra Reddy Date: Tue, 3 Jan 2023 18:00:57 +0000 (+0000) Subject: [libc][NFC] Remove a constexpr marking to fix GCC build. X-Git-Tag: upstream/17.0.6~22272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa715e2dad4adfe7f8922c299250b4463e1253c9;p=platform%2Fupstream%2Fllvm.git [libc][NFC] Remove a constexpr marking to fix GCC build. --- diff --git a/libc/src/__support/File/file.h b/libc/src/__support/File/file.h index 2299584..3c035cd 100644 --- a/libc/src/__support/File/file.h +++ b/libc/src/__support/File/file.h @@ -203,7 +203,7 @@ public: // Close |f| and cleanup resources held by it. // Returns the non-zero error value if an error occurs when closing the // file. - static constexpr int cleanup(File *f) { + static int cleanup(File *f) { int close_result = f->close(); if (close_result != 0) return close_result;