summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/target_simd_loop_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-08-31 23:06:52 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-08-31 23:06:52 +0000
commit5372fb8cc1abe6e6b1619beb8722b4596a61200e (patch)
tree34980dd1b825463a1554f9af1268efd43df30f5a /clang/test/OpenMP/target_simd_loop_messages.cpp
parenta865658a74e03c0547f37a4bf9a46e13d9d1b97b (diff)
downloadbcm5719-llvm-5372fb8cc1abe6e6b1619beb8722b4596a61200e.tar.gz
bcm5719-llvm-5372fb8cc1abe6e6b1619beb8722b4596a61200e.zip
[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. llvm-svn: 312292
Diffstat (limited to 'clang/test/OpenMP/target_simd_loop_messages.cpp')
-rw-r--r--clang/test/OpenMP/target_simd_loop_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/target_simd_loop_messages.cpp b/clang/test/OpenMP/target_simd_loop_messages.cpp
index 67201fb73fa..d33f1f4cdc6 100644
--- a/clang/test/OpenMP/target_simd_loop_messages.cpp
+++ b/clang/test/OpenMP/target_simd_loop_messages.cpp
@@ -541,7 +541,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() {
OpenPOWER on IntegriCloud