diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-03-29 17:56:24 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-03-29 17:56:24 +0000 |
commit | 673af7a6881de2b63cc6cda95464d555abb1b404 (patch) | |
tree | 01e1b7e88459fbd1e73af922c46a2880c5410e85 /clang/test/CodeGen/atomic-ops.c | |
parent | f4b6dcf6af9d1ef38f60f112c8ccbf2521e07e88 (diff) | |
download | bcm5719-llvm-673af7a6881de2b63cc6cda95464d555abb1b404.tar.gz bcm5719-llvm-673af7a6881de2b63cc6cda95464d555abb1b404.zip |
Generalize NRVO to cover C structs.
This commit generalizes NRVO to cover C structs (both trivial and
non-trivial structs).
rdar://problem/33599681
Differential Revision: https://reviews.llvm.org/D44968
llvm-svn: 328809
Diffstat (limited to 'clang/test/CodeGen/atomic-ops.c')
-rw-r--r-- | clang/test/CodeGen/atomic-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/atomic-ops.c b/clang/test/CodeGen/atomic-ops.c index 1ebb2baa1ac..db97706c5d4 100644 --- a/clang/test/CodeGen/atomic-ops.c +++ b/clang/test/CodeGen/atomic-ops.c @@ -186,8 +186,8 @@ struct S { struct S fd1(struct S *a) { // CHECK-LABEL: @fd1 // CHECK: [[RETVAL:%.*]] = alloca %struct.S, align 4 - // CHECK: [[RET:%.*]] = alloca %struct.S, align 4 - // CHECK: [[CAST:%.*]] = bitcast %struct.S* [[RET]] to i64* + // CHECK: bitcast %struct.S* {{.*}} to i64* + // CHECK: [[CAST:%.*]] = bitcast %struct.S* [[RETVAL]] to i64* // CHECK: [[CALL:%.*]] = call i64 @__atomic_load_8( // CHECK: store i64 [[CALL]], i64* [[CAST]], align 4 struct S ret; |