llvm.org GIT mirror llvm / bb10524
Fix build failure on windows Add explicit constructor to struct instead of using brace initialization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213389 91177308-0d34-0410-b5e6-96231b3b80d8 David Peixotto 5 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2323 class MCSymbol;
2424
2525 struct ConstantPoolEntry {
26 ConstantPoolEntry(MCSymbol *L, const MCExpr *Val, unsigned Sz)
27 : Label(L), Value(Val), Size(Sz) {}
2628 MCSymbol *Label;
2729 const MCExpr *Value;
2830 unsigned Size;
3838 unsigned Size) {
3939 MCSymbol *CPEntryLabel = Context.CreateTempSymbol();
4040
41 Entries.push_back( { CPEntryLabel, Value, Size } );
41 Entries.push_back(ConstantPoolEntry(CPEntryLabel, Value, Size));
4242 return MCSymbolRefExpr::Create(CPEntryLabel, Context);
4343 }
4444