[PATCH] D137073: [clang] Fix inline builtin functions of an __asm__ renamed function with symbol prefixes

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 31 15:17:28 PDT 2022


rnk added inline comments.


================
Comment at: clang/lib/CodeGen/CGExpr.cpp:5020
+    std::string AsmName;
+    if (auto *A = FD->getAttr<AsmLabelAttr>()) {
+      StringRef UserLabelPrefix =
----------------
I think you can call CGM.getMangledName, but I might be wrong. It's worth doing if straightforward.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137073



More information about the cfe-commits mailing list