]> granicus.if.org Git - clang/commit
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)
commit57a91f7ae47dc5f2a17176216981696e21c414a7
treed27089db545b771e5be3a5ea960e61478682d944
parent335c77ad164e1b67043f8ddfa38a7902029b2c98
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243525 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/vtable-key-function-win-comdat.cpp [new file with mode: 0644]