Skip to content

Commit b4a285b

Browse files
mgabkatru
authored andcommitted
[clang][SVE] Undefine preprocessor macro defined in
arm_sve.h defines and uses __ai macro which needs to be undefined (as it is already in arm_neon.h). Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D131580 (cherry picked from commit 48e1250)
1 parent 02b82b8 commit b4a285b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/utils/TableGen/SveEmitter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,8 @@ void SVEEmitter::createHeader(raw_ostream &OS) {
12821282
OS << "#ifdef __cplusplus\n";
12831283
OS << "} // extern \"C\"\n";
12841284
OS << "#endif\n\n";
1285+
OS << "#undef __ai\n\n";
1286+
OS << "#undef __aio\n\n";
12851287
OS << "#endif /*__ARM_FEATURE_SVE */\n\n";
12861288
OS << "#endif /* __ARM_SVE_H */\n";
12871289
}

0 commit comments

Comments
 (0)