[llvm] r183041 - Remove union to fix build in c++03.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 31 13:35:58 PDT 2013
Author: rafael
Date: Fri May 31 15:35:58 2013
New Revision: 183041
URL: http://llvm.org/viewvc/llvm-project?rev=183041&view=rev
Log:
Remove union to fix build in c++03.
Modified:
llvm/trunk/include/llvm/Object/COFFYaml.h
Modified: llvm/trunk/include/llvm/Object/COFFYaml.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/COFFYaml.h?rev=183041&r1=183040&r2=183041&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/COFFYaml.h (original)
+++ llvm/trunk/include/llvm/Object/COFFYaml.h Fri May 31 15:35:58 2013
@@ -40,10 +40,8 @@ namespace COFFYAML {
/// string. Using this avoid having to allocate temporary strings.
/// FIXME: not COFF specific.
class BinaryRef {
- union {
- ArrayRef<uint8_t> BinaryData;
- StringRef HexData;
- };
+ ArrayRef<uint8_t> BinaryData;
+ StringRef HexData;
bool isBinary;
public:
BinaryRef(ArrayRef<uint8_t> BinaryData)
More information about the llvm-commits
mailing list