[PATCH] D78205: [builtins] Fix unprototypes function declaration
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 07:05:20 PDT 2020
aykevl created this revision.
aykevl added reviewers: MaskRay, kongyi, efriedma, joerg, peter.smith.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
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 (D78125 <https://reviews.llvm.org/D78125>).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78205
Files:
compiler-rt/lib/builtins/fp_mode.h
Index: compiler-rt/lib/builtins/fp_mode.h
===================================================================
--- compiler-rt/lib/builtins/fp_mode.h
+++ compiler-rt/lib/builtins/fp_mode.h
@@ -23,7 +23,7 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78205.257703.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/212ab391/attachment.bin>
More information about the llvm-commits
mailing list