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:
NAKAMURA Takumi 2017-07-30 06:39:52 +00:00
parent fb5afbda32
commit b7b8250502
1 changed files with 0 additions and 2 deletions

View File

@ -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();
}