OSDN Git Service

GlobalOpt: Don't drop unused memberes of a Comdat
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 8 Oct 2014 07:23:31 +0000 (07:23 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 8 Oct 2014 07:23:31 +0000 (07:23 +0000)
commitb07b0970b1c57ea63656e425948dec83b710d38f
tree73d3d35f33cbb77ade5b06b1e629daf08ef3b2c7
parentf8b5847bc420e40a9b7fbdd24cd9f946059345a9
GlobalOpt: Don't drop unused memberes of a Comdat

A linkonce_odr member of a COMDAT shouldn't be dropped if we need to
keep the entire COMDAT group.

This fixes PR21191.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/pr21191.ll [new file with mode: 0644]