diff options
author | Eric Astor <epastor@google.com> | 2020-09-14 14:11:29 -0400 |
---|---|---|
committer | Eric Astor <epastor@google.com> | 2020-09-14 14:12:20 -0400 |
commit | 7c44ee8e1937c7402a106f3fa6a356caa73a14e8 (patch) | |
tree | 9b14809945f144721d08b068f275e54c191cd086 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | da17e0d5c1dfabcba887e323b1aabc8cc4342cd6 (diff) | |
download | llvm-7c44ee8e1937c7402a106f3fa6a356caa73a14e8.zip llvm-7c44ee8e1937c7402a106f3fa6a356caa73a14e8.tar.gz llvm-7c44ee8e1937c7402a106f3fa6a356caa73a14e8.tar.bz2 |
[ms] [llvm-ml] Fix struct padding logic
MASM structs are end-padded to have size a multiple of the smaller of the requested alignment and the size of their largest field (taken recursively, if they have a field of STRUCT type).
This matches the behavior of ml.exe and ml64.exe. Our original implementation followed the MASM 6.0 documentation, which instead specified that MASM structs were padded to a multiple of their requested alignment.
Reviewed By: thakis
Differential Revision: https://reviews.llvm.org/D87248
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions