[clang] 4edde41 - [clang][APINotes] Fix build error due to `-fpermissive` on GCC. NFC

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 17 12:01:29 PDT 2023


Author: Michael Liao
Date: 2023-08-17T15:00:39-04:00
New Revision: 4edde41daed5e5e0b9aab2322215ddc2535f4cfd

URL: https://github.com/llvm/llvm-project/commit/4edde41daed5e5e0b9aab2322215ddc2535f4cfd
DIFF: https://github.com/llvm/llvm-project/commit/4edde41daed5e5e0b9aab2322215ddc2535f4cfd.diff

LOG: [clang][APINotes] Fix build error due to `-fpermissive` on GCC. NFC

Added: 
    

Modified: 
    clang/lib/APINotes/APINotesWriter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/APINotes/APINotesWriter.cpp b/clang/lib/APINotes/APINotesWriter.cpp
index 1a3d66a547f6ad..aad4c886bdd66d 100644
--- a/clang/lib/APINotes/APINotesWriter.cpp
+++ b/clang/lib/APINotes/APINotesWriter.cpp
@@ -891,7 +891,7 @@ unsigned getFunctionInfoSize(const FunctionInfo &FI) {
 }
 
 /// Emit a serialized representation of the function information.
-static void emitFunctionInfo(raw_ostream &OS, const FunctionInfo &FI) {
+void emitFunctionInfo(raw_ostream &OS, const FunctionInfo &FI) {
   emitCommonEntityInfo(OS, FI);
 
   uint8_t flags = 0;


        


More information about the cfe-commits mailing list