| commit | 04da2385cfbc91dbbb92e7594348287e11226bcf | [log] [tgz] |
|---|---|---|
| author | Yaron Keren <yaron.keren@gmail.com> | Wed Jul 29 15:42:28 2015 +0000 |
| committer | Yaron Keren <yaron.keren@gmail.com> | Wed Jul 29 15:42:28 2015 +0000 |
| tree | 21f4b7ae886aee1d880982d7a033907358d37f3f | |
| parent | 63afb6799224399a723af8c67d0b1bbaa1a9a061 [diff] |
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