diff options
author | Anton Bikineev <ant.bikineev@gmail.com> | 2018-10-10 16:14:51 +0000 |
---|---|---|
committer | Anton Bikineev <ant.bikineev@gmail.com> | 2018-10-10 16:14:51 +0000 |
commit | cc7e74753ae2243f00971e3cfed7d7ee7a0136ed (patch) | |
tree | cd349f61ae9f7e9d429b3b4cfcf246e454a48b05 /clang/test/CodeGenCXX/for-range.cpp | |
parent | 9efbfa88c3f68e12507b1c7658d4812759f4e68a (diff) | |
download | bcm5719-llvm-cc7e74753ae2243f00971e3cfed7d7ee7a0136ed.tar.gz bcm5719-llvm-cc7e74753ae2243f00971e3cfed7d7ee7a0136ed.zip |
[CodeGenCXX] Treat 'this' as noalias in constructors
This is currently a clang extension and a resolution
of the defect report in the C++ Standard.
Differential Revision: https://reviews.llvm.org/D46441
llvm-svn: 344150
Diffstat (limited to 'clang/test/CodeGenCXX/for-range.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/for-range.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/for-range.cpp b/clang/test/CodeGenCXX/for-range.cpp index 8124129713f..e2ed633e65a 100644 --- a/clang/test/CodeGenCXX/for-range.cpp +++ b/clang/test/CodeGenCXX/for-range.cpp @@ -34,7 +34,7 @@ extern B array[5]; // CHECK-LABEL: define void @_Z9for_arrayv( void for_array() { - // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) + // CHECK: call void @_ZN1AC1Ev(%struct.A* noalias [[A:.*]]) A a; for (B b : array) { // CHECK-NOT: 5begin @@ -63,7 +63,7 @@ void for_array() { // CHECK-LABEL: define void @_Z9for_rangev( void for_range() { - // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) + // CHECK: call void @_ZN1AC1Ev(%struct.A* noalias [[A:.*]]) A a; for (B b : C()) { // CHECK: call void @_ZN1CC1Ev( @@ -95,7 +95,7 @@ void for_range() { // CHECK-LABEL: define void @_Z16for_member_rangev( void for_member_range() { - // CHECK: call void @_ZN1AC1Ev(%struct.A* [[A:.*]]) + // CHECK: call void @_ZN1AC1Ev(%struct.A* noalias [[A:.*]]) A a; for (B b : D()) { // CHECK: call void @_ZN1DC1Ev( |