aaron.ballman added a reviewer: erichkeane. aaron.ballman added a comment. Adding Erich as he's more familiar with ifunc and friends.
================ Comment at: clang/lib/CodeGen/CodeGenModule.cpp:345 + const llvm::GlobalValue *&GV, + const llvm::MapVector<GlobalDecl, StringRef> &MangledDeclNames) { GV = getAliasedGlobal(Alias); ---------------- Does clang-format do this? It looks far beyond the usual 80 col limit we use. ================ Comment at: clang/lib/CodeGen/CodeGenModule.cpp:355 + // Provide a note if the given function is not found and exists as a + // mangled name + for (const auto &[Decl, Name] : MangledDeclNames) { ---------------- ================ Comment at: clang/lib/CodeGen/CodeGenModule.cpp:359-360 + if (ND->getName() == GV->getName()) { + Diags.Report(Location, diag::note_alias_requires_mangled_name) + << GV->getName() << Name; + } ---------------- Should this come with a fix-it to switch the attribute to using the mangled name instead? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143803/new/ https://reviews.llvm.org/D143803 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits