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)