[libc-commits] [libc] fa715e2 - [libc][NFC] Remove a constexpr marking to fix GCC build.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Tue Jan 3 10:11:01 PST 2023
Author: Siva Chandra Reddy
Date: 2023-01-03T18:00:57Z
New Revision: fa715e2dad4adfe7f8922c299250b4463e1253c9
URL: https://github.com/llvm/llvm-project/commit/fa715e2dad4adfe7f8922c299250b4463e1253c9
DIFF: https://github.com/llvm/llvm-project/commit/fa715e2dad4adfe7f8922c299250b4463e1253c9.diff
LOG: [libc][NFC] Remove a constexpr marking to fix GCC build.
Added:
Modified:
libc/src/__support/File/file.h
Removed:
################################################################################
diff --git a/libc/src/__support/File/file.h b/libc/src/__support/File/file.h
index 2299584c3d64e..3c035cdd5fc63 100644
--- a/libc/src/__support/File/file.h
+++ b/libc/src/__support/File/file.h
@@ -203,7 +203,7 @@ class File {
// 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;
More information about the libc-commits
mailing list