diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2014-05-28 09:56:42 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2014-05-28 09:56:42 +0000 |
commit | 9b46eb81127be4a7560952677294d3c376648c08 (patch) | |
tree | 99e4aa165636c60d4f0e903a00b1f41e7976a6ae /clang/test/CodeGenCXX/volatile.cpp | |
parent | a09b70579a8cbddbd677250916e82cf43932bd99 (diff) | |
download | bcm5719-llvm-9b46eb81127be4a7560952677294d3c376648c08.tar.gz bcm5719-llvm-9b46eb81127be4a7560952677294d3c376648c08.zip |
Add 'nonnull' parameter or return attribute when producing an llvm pointer type in a function type where the C++ type is a reference. Update the tests.
llvm-svn: 209723
Diffstat (limited to 'clang/test/CodeGenCXX/volatile.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/volatile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/volatile.cpp b/clang/test/CodeGenCXX/volatile.cpp index 38c8829347c..b2dd36e7b68 100644 --- a/clang/test/CodeGenCXX/volatile.cpp +++ b/clang/test/CodeGenCXX/volatile.cpp @@ -15,7 +15,7 @@ namespace test0 { void test(A t) { // CHECK: [[ARR:%.*]] = load [[A:%.*]]** @_ZN5test05arrayE, align 8 // CHECK-NEXT: [[IDX:%.*]] = getelementptr inbounds [[A]]* [[ARR]], i64 0 - // CHECK-NEXT: [[TMP:%.*]] = call [[A]]* @_ZNV5test01AaSERVKS0_([[A]]* [[IDX]], [[A]]* [[T:%.*]]) + // CHECK-NEXT: [[TMP:%.*]] = call nonnull [[A]]* @_ZNV5test01AaSERVKS0_([[A]]* [[IDX]], [[A]]* nonnull [[T:%.*]]) // CHECK-NEXT: ret void array[0] = t; } |