CodeGenModule.cpp: [PR33810][Modules] Remove an assertion that confirms MangledDeclNames[CanonicalGD] might be still empty.
FIXME: It is accepted that MangledDeclNames[CanonicalGD] is overwritten here? llvm-svn: 309504
This commit is contained in:
parent
fb5afbda32
commit
b7b8250502
|
@ -745,8 +745,6 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
|
|||
|
||||
// Keep the first result in the case of a mangling collision.
|
||||
auto Result = Manglings.insert(std::make_pair(Str, GD));
|
||||
assert(MangledDeclNames.find(CanonicalGD) == MangledDeclNames.end() &&
|
||||
"CanonicalGD is already mangled.");
|
||||
return MangledDeclNames[CanonicalGD] = Result.first->first();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue