We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cac54 commit 9d6a16dCopy full SHA for 9d6a16d
clang/lib/CodeGen/CodeGenModule.cpp
@@ -2051,7 +2051,8 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
2051
// Prior work:
2052
// https://discourse.llvm.org/t/rfc-clang-diagnostic-for-demangling-failures/82835/8
2053
// https://github.com/llvm/llvm-project/issues/111345
2054
- // assert(llvm::isMangledName(MangledName) &&
+ // assert((MangledName.startswith("_Z") || MangledName.startswith("?")) &&
2055
+ // !GD->hasAttr<AsmLabelAttr>() &&
2056
// llvm::demangle(MangledName) != MangledName &&
2057
// "LLVM demangler must demangle clang-generated names");
2058
0 commit comments