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 | ee94534662f9a5e52b59c9324b6e280842eb8795 (patch) | |
| tree | 58c2f2740dcb2d151cb186b2d1c37946dee338ef /clang/test/CodeGenCXX/x86_32-arguments.cpp | |
| parent | ee93ff736aea615312188ec6e3ec8a31d6be02bc (diff) | |
| download | bcm5719-llvm-ee94534662f9a5e52b59c9324b6e280842eb8795.tar.gz bcm5719-llvm-ee94534662f9a5e52b59c9324b6e280842eb8795.zip | |
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.
llvm-svn: 144960
Diffstat (limited to 'clang/test/CodeGenCXX/x86_32-arguments.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/x86_32-arguments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/x86_32-arguments.cpp b/clang/test/CodeGenCXX/x86_32-arguments.cpp index 1cbeb71b228..4404de0f88e 100644 --- a/clang/test/CodeGenCXX/x86_32-arguments.cpp +++ b/clang/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(); } |

