In case of an existing GlobalVariable, the comdat is created using the name of the
authorYaron Keren <yaron.keren@gmail.com>
Wed, 29 Jul 2015 15:42:28 +0000 (15:42 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 29 Jul 2015 15:42:28 +0000 (15:42 +0000)
commit04da2385cfbc91dbbb92e7594348287e11226bcf
tree21f4b7ae886aee1d880982d7a033907358d37f3f
parent63afb6799224399a723af8c67d0b1bbaa1a9a061
In case of an existing GlobalVariable, the comdat is created using the name of the
new GV (usually NAME.1) instead of the correct NAME of the old GV. Moving comdat
creation after GV replacement solves this. Patch + testcase.

Reviewed by Reid Kleckner.

http://reviews.llvm.org/D11594

llvm-svn: 243525
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp [new file with mode: 0644]