LowerBitSets: Give names to aliases of unnamed bitset element objects.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 12 Jun 2015 03:25:05 +0000 (03:25 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 12 Jun 2015 03:25:05 +0000 (03:25 +0000)
commitba74b27ed1ac9f0ea6cac2821bb87bebf102558d
treea1c6901b7284bebf3a57a6af2fc2af4d93df6918
parente0de59ac918c694537637caef87bad07a0334e09
LowerBitSets: Give names to aliases of unnamed bitset element objects.

It is valid for globals to be unnamed, but aliases must have a name. To avoid
creating invalid IR, we need to assign names to any aliases we create that
point to unnamed objects that have been moved into combined globals.

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