summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/for_simd_loop_messages.cpp
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-11-13 23:34:53 +0000
committerTom Stellard <tstellar@redhat.com>2017-11-13 23:34:53 +0000
commitccf8d1a8558739a619a29b8d0af1dbd3a8627d39 (patch)
treeefdbff9c2188a867ec075258f90acf20c0a34758 /test/OpenMP/for_simd_loop_messages.cpp
parent67341cd6d735f99599aab9e9b6a04699860ac5c2 (diff)
Merging r312292:
------------------------------------------------------------------------ r312292 | abataev | 2017-08-31 16:06:52 -0700 (Thu, 31 Aug 2017) | 8 lines [OPENMP] Fix for PR34398: assert with random access iterator if the step>1. If the loop is a loot with random access iterators and the iteration construct is represented it += n, then the compiler crashed because of reusing of the same MaterializedTemporaryExpr around N. Patch fixes it by using the expression as written, without any special kind of wrappings. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@318113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/for_simd_loop_messages.cpp')
-rw-r--r--test/OpenMP/for_simd_loop_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/OpenMP/for_simd_loop_messages.cpp b/test/OpenMP/for_simd_loop_messages.cpp
index e9729a8fc2..ea17a836cf 100644
--- a/test/OpenMP/for_simd_loop_messages.cpp
+++ b/test/OpenMP/for_simd_loop_messages.cpp
@@ -624,7 +624,7 @@ void test_with_template() {
t1.dotest_lt(begin, end);
t2.dotest_lt(begin, end); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
dotest_gt(begin, end); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}
- dotest_gt<unsigned, -10>(0, 100); // expected-note {{in instantiation of function template specialization 'dotest_gt<unsigned int, -10>' requested here}}
+ dotest_gt<unsigned, 10>(0, 100); // expected-note {{in instantiation of function template specialization 'dotest_gt<unsigned int, 10>' requested here}}
}
void test_loop_break() {