[llvm] r262908 - SelectionDAG: Appease the bots that don't like my union
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 7 19:51:58 PST 2016
Author: bogner
Date: Mon Mar 7 21:51:58 2016
New Revision: 262908
URL: http://llvm.org/viewvc/llvm-project?rev=262908&view=rev
Log:
SelectionDAG: Appease the bots that don't like my union
Should fix the breakage in r262902.
Modified:
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=262908&r1=262907&r2=262908&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Mon Mar 7 21:51:58 2016
@@ -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;
More information about the llvm-commits
mailing list