summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/fp_trunc_impl.inc
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-10-10 21:21:28 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-10-10 21:21:28 +0000
commit911cfc11c449f04ca280491239fcea38f6759cfe (patch)
treeb55fb3bd2c76d39994c47dc52576e4bae4352339 /compiler-rt/lib/builtins/fp_trunc_impl.inc
parent55b1f2920337ba89db9a5a3116fa323ac2286de0 (diff)
downloadbcm5719-llvm-911cfc11c449f04ca280491239fcea38f6759cfe.tar.gz
bcm5719-llvm-911cfc11c449f04ca280491239fcea38f6759cfe.zip
builtins: spell inline as __inline
__inline is a vendor specific spelling for inline. clang and gcc treat it the same as inline, and is available in MSVC 2013 which does not implement C99 (VS2015 supports the inline keyword though). This will allow us to build the builtins using MSVC. llvm-svn: 249953
Diffstat (limited to 'compiler-rt/lib/builtins/fp_trunc_impl.inc')
-rw-r--r--compiler-rt/lib/builtins/fp_trunc_impl.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/fp_trunc_impl.inc b/compiler-rt/lib/builtins/fp_trunc_impl.inc
index 372e8d6014d..d88ae060913 100644
--- a/compiler-rt/lib/builtins/fp_trunc_impl.inc
+++ b/compiler-rt/lib/builtins/fp_trunc_impl.inc
@@ -39,7 +39,7 @@
#include "fp_trunc.h"
-static inline dst_t __truncXfYf2__(src_t a) {
+static __inline dst_t __truncXfYf2__(src_t a) {
// Various constants whose values follow from the type parameters.
// Any reasonable optimizer will fold and propagate all of these.
const int srcBits = sizeof(src_t)*CHAR_BIT;
OpenPOWER on IntegriCloud