[llvm] r206363 - Simplify a static_assert so VS2013 can build it
Timur Iskhodzhanov
timurrrr at google.com
Wed Apr 16 01:30:32 PDT 2014
Author: timurrrr
Date: Wed Apr 16 03:30:32 2014
New Revision: 206363
URL: http://llvm.org/viewvc/llvm-project?rev=206363&view=rev
Log:
Simplify a static_assert so VS2013 can build it
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=206363&r1=206362&r2=206363&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Wed Apr 16 03:30:32 2014
@@ -632,8 +632,10 @@ void WinCOFFObjectWriter::ExecutePostLay
const MCAsmLayout &Layout) {
// "Define" each section & symbol. This creates section & symbol
// entries in the staging area.
-
- static_assert(sizeof(COFF::AuxiliaryFile::FileName) == COFF::SymbolSize,
+ // FIXME: this used to be
+ // sizeof(COFF::AuxiliaryFile::FileName) == COFF::SymbolSize
+ // but VS2013 can't compile that.
+ static_assert(sizeof(COFF::AuxiliaryFile) == COFF::SymbolSize,
"size mismatch for COFF::AuxiliaryFile::FileName");
for (auto FI = Asm.file_names_begin(), FE = Asm.file_names_end();
FI != FE; ++FI) {
More information about the llvm-commits
mailing list