1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

SelectionDAG: Appease the bots that don't like my union

Should fix the breakage in r262902.

llvm-svn: 262908
This commit is contained in:
Justin Bogner 2016-03-08 03:51:58 +00:00
parent db1099586d
commit 7c5a0b7bcf

View File

@ -2059,12 +2059,9 @@ template <> struct GraphTraits<SDNode*> {
///
/// This needs to be a union because the largest node differs on 32 bit systems
/// with 4 and 8 byte pointer alignment, respectively.
union LargestSDNode {
AtomicSDNode Atomic;
TargetIndexSDNode TargetIndex;
BlockAddressSDNode BlockAddress;
GlobalAddressSDNode GlobalAddress;
};
typedef AlignedCharArrayUnion<AtomicSDNode, TargetIndexSDNode,
BlockAddressSDNode, GlobalAddressSDNode>
LargestSDNode;
/// The SDNode class with the greatest alignment requirement.
typedef GlobalAddressSDNode MostAlignedSDNode;