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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm with slightly tighter test case.
tools/clang/test/CodeGenCXX/vtable-key-function-win-comdat.cpp | ||
---|---|---|
18 | Can you also CHECK that the vtable definition has the right name, linkage, and uses this comdat? |
Can you also CHECK that the vtable definition has the right name, linkage, and uses this comdat?