]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR34927: Emit initializer for reduction array with declare
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Oct 2017 20:03:39 +0000 (20:03 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 12 Oct 2017 20:03:39 +0000 (20:03 +0000)
commitc284921aae819808986d750dc2d3650f8fb0bf01
treef5840a61f1f8b6a39cebfb54959fbeb9581820bd
parentbc5044dbadc5bce5eaf1a1d04860bc812d6e79c8
[OPENMP] Fix PR34927: Emit initializer for reduction array with declare
reduction.

If the reduction is an array or an array section and reduction operation
is declare reduction without initializer, it may lead to crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/declare_reduction_codegen.cpp