From: NAKAMURA Takumi Date: Sun, 30 Jul 2017 06:39:52 +0000 (+0000) Subject: CodeGenModule.cpp: [PR33810][Modules] Remove an assertion that confirms MangledDeclNa... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07d662ac50b560b0a92d53eae23ea5cee64b8423;p=clang 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? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309504 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 310b19c209..5ba95c99a7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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(); }