[compiler-rt] d9e5691 - [builtins] Fix unprototypes function declaration

Ayke van Laethem via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 14:45:02 PDT 2020


Author: Ayke van Laethem
Date: 2020-04-15T23:44:51+02:00
New Revision: d9e5691843a932a6c0633fa6f07bc084dcfd4a93

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

LOG: [builtins] Fix unprototypes function declaration

The following declarations were missing a prototype:

    FE_ROUND_MODE __fe_getround();
    int __fe_raise_inexact();

Discovered while fixing a bug in Clang related to unprototyped function
calls (see the previous commit).

Differential Revision: https://reviews.llvm.org/D78205

Added: 
    

Modified: 
    compiler-rt/lib/builtins/fp_mode.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/fp_mode.h b/compiler-rt/lib/builtins/fp_mode.h
index 51bec0431a40..4ba682c384f2 100644
--- a/compiler-rt/lib/builtins/fp_mode.h
+++ b/compiler-rt/lib/builtins/fp_mode.h
@@ -23,7 +23,7 @@ typedef enum {
   FE_TOWARDZERO
 } FE_ROUND_MODE;
 
-FE_ROUND_MODE __fe_getround();
-int __fe_raise_inexact();
+FE_ROUND_MODE __fe_getround(void);
+int __fe_raise_inexact(void);
 
 #endif // FP_MODE_H


        


More information about the llvm-commits mailing list