[ms] [llvm-ml] Fix STRUCT field alignment
authorEric Astor <epastor@google.com>
Mon, 7 Sep 2020 17:58:55 +0000 (13:58 -0400)
committerEric Astor <epastor@google.com>
Mon, 7 Sep 2020 17:58:59 +0000 (13:58 -0400)
commit2feb6e9b8418b29c002bc830a3e2fdcbe9e39449
treed8f9d458aed513d2658e9893dbe4c5e71171c91e
parente52e7ad54defa3a95040b680beff2824c9c6fbb7
[ms] [llvm-ml] Fix STRUCT field alignment

MASM aligns fields to the _minimum_ of the STRUCT alignment value and the size of the next field.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D86945
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/struct.test