summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-07-30 06:39:52 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-07-30 06:39:52 +0000
commitb7b8250502f3270e8358648b83ae05aa9633fb20 (patch)
treeb35b4707628b8e97f211c0d25166fe796fe83a71 /clang/lib/CodeGen/CodeGenModule.cpp
parentfb5afbda32121efcea85102b2727ce9017411390 (diff)
downloadbcm5719-llvm-b7b8250502f3270e8358648b83ae05aa9633fb20.tar.gz
bcm5719-llvm-b7b8250502f3270e8358648b83ae05aa9633fb20.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 310b19c2092..5ba95c99a79 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud