diff options
| author | Tim Northover <tnorthover@apple.com> | 2013-06-21 22:49:34 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2013-06-21 22:49:34 +0000 |
| commit | f5c3a2521972e9d70d0ec5450cc65472d63ec89f (patch) | |
| tree | 3a632987baea3a59fee05128f43ce0de905dc292 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | adebeb8bdc4ae7a841ee65d45d406dcba6e74e25 (diff) | |
| download | clang-f5c3a2521972e9d70d0ec5450cc65472d63ec89f.tar.gz clang-f5c3a2521972e9d70d0ec5450cc65472d63ec89f.tar.bz2 clang-f5c3a2521972e9d70d0ec5450cc65472d63ec89f.tar.xz | |
Check for trivial constructibility before emptiness in ARM ABI.
According to the Itanium ABI (3.1.1), types with non-trivial copy constructors
passed by value should be passed indirectly, with the caller creating a
temporary.
We got this mostly correct, but forgot that empty structs can have non-trivial
constructors too and passed them incorrectly. This simply reverses the order of
the check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
