MC: rework static_assert to be MSVC compatible
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Apr 2014 06:17:20 +0000 (06:17 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 17 Apr 2014 06:17:20 +0000 (06:17 +0000)
commitc0b8743f35efccc52d97288b09f59089386c83f8
treeb11535e6e7789915f970eb407fcc00ed828e29cf
parentc30a52807fea3bf25b34624365bcf92befda964a
MC: rework static_assert to be MSVC compatible

Visual Studio does not permit referencing a structure member as a static field
for sizeof calculations.  Resort to a pointer cast which is compatible across
Visual Studio and other compilers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WinCOFFObjectWriter.cpp