]> granicus.if.org Git - clang/commitdiff
CodeGenModule.cpp: [PR33810][Modules] Remove an assertion that confirms MangledDeclNa...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 30 Jul 2017 06:39:52 +0000 (06:39 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 30 Jul 2017 06:39:52 +0000 (06:39 +0000)
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

lib/CodeGen/CodeGenModule.cpp

index 310b19c2092414a943d6382d973c2b36a02bf987..5ba95c99a79a3fb17347a6637a9621eddb7f4a66 100644 (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();
 }