[PATCH] D116774: AST: Move __va_list tag back to std conditionally on AArch64.

Jessica Clarke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 17 06:45:20 PST 2022


jrtc27 added inline comments.


================
Comment at: clang/lib/AST/ItaniumMangle.cpp:641
+        getASTContext().getTargetInfo().getTriple().getArch();
+    if (Arch == llvm::Triple::aarch64 || Arch == llvm::Triple::aarch64_be ||
+        Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb)
----------------
Could use isAArch64 (which then also picks up aarch64_32)


================
Comment at: clang/lib/AST/ItaniumMangle.cpp:642
+    if (Arch == llvm::Triple::aarch64 || Arch == llvm::Triple::aarch64_be ||
+        Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb)
+      return getStdNamespace();
----------------
Could use isARM. Does this also need to care about isThumb, or has that been normalised to Arm with a T32 subarch?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116774/new/

https://reviews.llvm.org/D116774



More information about the cfe-commits mailing list