Simplify a static_assert so VS2013 can build it
authorTimur Iskhodzhanov <timurrrr@google.com>
Wed, 16 Apr 2014 08:30:32 +0000 (08:30 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Wed, 16 Apr 2014 08:30:32 +0000 (08:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206363 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/WinCOFFObjectWriter.cpp

index 27dc5a12a695ade6f055de8c2fc8e93970e40fe4..8e5377980d7443bdca8be498f7abf86fd3c047da 100644 (file)
@@ -632,8 +632,10 @@ void WinCOFFObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm,
                                                    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) {