Skip to content

Commit 5a2e56b

Browse files
[Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement
The generated arm_neon.h header isn't -Wdeclaration-after-statement compliant when targeting -mbig-endian. Update the generator to declare the return value, if any, first before any other arguments that might need to be "reversed" from little endian to big. Another approach would have been to try to ignore this warning in system headers, though that might not be precise for tokens involved in macro expansion. See also: https://reviews.llvm.org/D116833#3236209. Link: ClangBuiltLinux/linux#1603 Fixes: #54062 Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D122189
1 parent 355f1c7 commit 5a2e56b

File tree

4 files changed

+163
-142
lines changed

4 files changed

+163
-142
lines changed

0 commit comments

Comments
 (0)