diff options
author | David Peixotto <dpeixott@codeaurora.org> | 2014-07-18 16:41:58 +0000 |
---|---|---|
committer | David Peixotto <dpeixott@codeaurora.org> | 2014-07-18 16:41:58 +0000 |
commit | b0b3e66ed4c1f5e4201c2af1f53f2f026419d28c (patch) | |
tree | c6e79e163381bcbde63792daacf58b9caf59bf38 | |
parent | e939235b240d5ae6cdccc1ccfb9edead529e4a98 (diff) | |
download | bcm5719-llvm-b0b3e66ed4c1f5e4201c2af1f53f2f026419d28c.tar.gz bcm5719-llvm-b0b3e66ed4c1f5e4201c2af1f53f2f026419d28c.zip |
Fix build failure on windows
Add explicit constructor to struct instead of using brace initialization.
llvm-svn: 213389
-rw-r--r-- | llvm/include/llvm/MC/ConstantPools.h | 2 | ||||
-rw-r--r-- | llvm/lib/MC/ConstantPools.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/ConstantPools.h b/llvm/include/llvm/MC/ConstantPools.h index 0e6a8320702..2e76074db77 100644 --- a/llvm/include/llvm/MC/ConstantPools.h +++ b/llvm/include/llvm/MC/ConstantPools.h @@ -24,6 +24,8 @@ class MCStreamer; class MCSymbol; struct ConstantPoolEntry { + ConstantPoolEntry(MCSymbol *L, const MCExpr *Val, unsigned Sz) + : Label(L), Value(Val), Size(Sz) {} MCSymbol *Label; const MCExpr *Value; unsigned Size; diff --git a/llvm/lib/MC/ConstantPools.cpp b/llvm/lib/MC/ConstantPools.cpp index 41ce68bfe0a..c4cea604b14 100644 --- a/llvm/lib/MC/ConstantPools.cpp +++ b/llvm/lib/MC/ConstantPools.cpp @@ -39,7 +39,7 @@ const MCExpr *ConstantPool::addEntry(const MCExpr *Value, MCContext &Context, unsigned Size) { MCSymbol *CPEntryLabel = Context.CreateTempSymbol(); - Entries.push_back( { CPEntryLabel, Value, Size } ); + Entries.push_back(ConstantPoolEntry(CPEntryLabel, Value, Size)); return MCSymbolRefExpr::Create(CPEntryLabel, Context); } |