[clang][SVE] Use __inline__ instead of inline in arm_sve.h

The inline keyword is not defined in the C89 standard, so source files
that include arm_sve.h will fail compilation if -std=c89 is specified.
For consistency with arm_neon.h, we should use __inline__ instead.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D96852
This commit is contained in:
Joe Ellis 2021-02-18 17:08:12 +00:00
parent 792627be35
commit 1f2122c9b0
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ void SVEEmitter::createHeader(raw_ostream &OS) {
OS << "};\n\n";
OS << "/* Function attributes */\n";
OS << "#define __aio static inline __attribute__((__always_inline__, "
OS << "#define __aio static __inline__ __attribute__((__always_inline__, "
"__nodebug__, __overloadable__))\n\n";
// Add reinterpret functions.