Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2068,9 +2068,10 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
// Prior work:
// https://discourse.llvm.org/t/rfc-clang-diagnostic-for-demangling-failures/82835/8
// https://github.com/llvm/llvm-project/issues/111345
// assert((MangledName.startswith("_Z") || MangledName.startswith("?")) &&
// !GD->hasAttr<AsmLabelAttr>() &&
// llvm::demangle(MangledName) != MangledName &&
// assert(!((StringRef(MangledName).starts_with("_Z") ||
// StringRef(MangledName).starts_with("?")) &&
// !GD.getDecl()->hasAttr<AsmLabelAttr>() &&
// llvm::demangle(MangledName) == MangledName) &&
// "LLVM demangler must demangle clang-generated names");

auto Result = Manglings.insert(std::make_pair(MangledName, GD));
Expand Down