From 0e07d1a93d0fcfed0b309474778a76f828d670ce Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 31 May 2013 20:35:58 +0000 Subject: [PATCH] Remove union to fix build in c++03. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183041 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/COFFYaml.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/llvm/Object/COFFYaml.h b/include/llvm/Object/COFFYaml.h index f4732e23bc0..25c4601a972 100644 --- a/include/llvm/Object/COFFYaml.h +++ b/include/llvm/Object/COFFYaml.h @@ -40,10 +40,8 @@ namespace COFFYAML { /// string. Using this avoid having to allocate temporary strings. /// FIXME: not COFF specific. class BinaryRef { - union { - ArrayRef BinaryData; - StringRef HexData; - }; + ArrayRef BinaryData; + StringRef HexData; bool isBinary; public: BinaryRef(ArrayRef BinaryData) -- 2.34.1