Skip to content

Commit 9d6a16d

Browse files
committed
[clang][codegen] Change the comment text to be more detailed on what a mangled name is.
1 parent 47cac54 commit 9d6a16d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,8 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
20512051
// Prior work:
20522052
// https://discourse.llvm.org/t/rfc-clang-diagnostic-for-demangling-failures/82835/8
20532053
// https://github.com/llvm/llvm-project/issues/111345
2054-
// assert(llvm::isMangledName(MangledName) &&
2054+
// assert((MangledName.startswith("_Z") || MangledName.startswith("?")) &&
2055+
// !GD->hasAttr<AsmLabelAttr>() &&
20552056
// llvm::demangle(MangledName) != MangledName &&
20562057
// "LLVM demangler must demangle clang-generated names");
20572058

0 commit comments

Comments
 (0)