Try to fix miscompile after r237873. Looks like this union
initialization isn't legal (or at least not supported).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237875
91177308-0d34-0410-b5e6-
96231b3b80d8
union {
/// Offset - The offset to apply to the fragment address to form this
/// symbol's value.
- uint64_t Offset = 0;
+ uint64_t Offset;
/// CommonSize - The size of the symbol, if it is 'common'.
uint64_t CommonSize;
uint64_t Index = 0;
public:
+ MCSymbolData() { Offset = 0; }
+
MCFragment *getFragment() const { return Fragment.getPointer(); }
void setFragment(MCFragment *Value) { Fragment.setPointer(Value); }