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)
commit005354b1f4fc896d70c2c5139f6c512ca8a8926b
treed26668520ce262217b1b12c6b9d70f50391f3298
parent43a65d9529c24c3253d385cde91cf4c9dad4155e
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.

llvm-svn: 239590
llvm/lib/Transforms/IPO/LowerBitSets.cpp
llvm/test/Transforms/LowerBitSets/unnamed.ll [new file with mode: 0644]