[all-commits] [llvm/llvm-project] 21b438: Fix bug 44190 - wrong code with #pragma pack(1)

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Dec 10 10:58:29 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 21b43885b81a6180e7231e575b5433202582f2fb
      https://github.com/llvm/llvm-project/commit/21b43885b81a6180e7231e575b5433202582f2fb
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    A clang/test/CodeGen/s390x-packed-struct-func-arg.c

  Log Message:
  -----------
  Fix bug 44190 - wrong code with #pragma pack(1)

https://github.com/llvm/llvm-project/commit/5b330e8d6122c336d81dfd11c864e6c6240a381e caused
a regression on s390:

https://bugs.llvm.org/show_bug.cgi?id=44190

we need to copy if if either the argument is non-byval or the argument is underaligned.

Differential Revision: https://reviews.llvm.org/D71282




More information about the All-commits mailing list