diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-11-18 01:25:50 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-11-18 01:25:50 +0000 |
commit | bd4d3bcd2cd64d1bba29b2a52705b97d68ebccd5 (patch) | |
tree | b52152f814ae08ec26d62cbdb24b73255c86bb52 /test/CodeGenCXX/x86_32-arguments.cpp | |
parent | 87adb0bf9375390de4c66d9e2ad110cc492cd655 (diff) |
Simplify code for returning a struct for Darwin x86-32 ABI. Use a better type for a function returning a struct containing only a pointer. Handle the edge case of a struct containing only a float or double plus some dead padding instead of asserting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/x86_32-arguments.cpp')
-rw-r--r-- | test/CodeGenCXX/x86_32-arguments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/x86_32-arguments.cpp b/test/CodeGenCXX/x86_32-arguments.cpp index 1cbeb71b22..4404de0f88 100644 --- a/test/CodeGenCXX/x86_32-arguments.cpp +++ b/test/CodeGenCXX/x86_32-arguments.cpp @@ -84,7 +84,7 @@ struct s4_1 { float x; }; struct s4_2 : s4_0, s4_1 { }; s4_2 f4() { return s4_2(); } -// CHECK: define i32 @_Z2f5v() +// CHECK: define i32* @_Z2f5v() struct s5 { s5(); int &x; }; s5 f5() { return s5(); } |