[llvm] r213389 - Fix build failure on windows
David Peixotto
dpeixott at codeaurora.org
Fri Jul 18 09:41:58 PDT 2014
Author: dpeixott
Date: Fri Jul 18 11:41:58 2014
New Revision: 213389
URL: http://llvm.org/viewvc/llvm-project?rev=213389&view=rev
Log:
Fix build failure on windows
Add explicit constructor to struct instead of using brace initialization.
Modified:
llvm/trunk/include/llvm/MC/ConstantPools.h
llvm/trunk/lib/MC/ConstantPools.cpp
Modified: llvm/trunk/include/llvm/MC/ConstantPools.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/ConstantPools.h?rev=213389&r1=213388&r2=213389&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/ConstantPools.h (original)
+++ llvm/trunk/include/llvm/MC/ConstantPools.h Fri Jul 18 11:41:58 2014
@@ -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;
Modified: llvm/trunk/lib/MC/ConstantPools.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ConstantPools.cpp?rev=213389&r1=213388&r2=213389&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ConstantPools.cpp (original)
+++ llvm/trunk/lib/MC/ConstantPools.cpp Fri Jul 18 11:41:58 2014
@@ -39,7 +39,7 @@ const MCExpr *ConstantPool::addEntry(con
unsigned Size) {
MCSymbol *CPEntryLabel = Context.CreateTempSymbol();
- Entries.push_back( { CPEntryLabel, Value, Size } );
+ Entries.push_back(ConstantPoolEntry(CPEntryLabel, Value, Size));
return MCSymbolRefExpr::Create(CPEntryLabel, Context);
}
More information about the llvm-commits
mailing list