[OPENMP]Fix crash on error message for declare reduction.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 Jan 2020 16:58:16 +0000 (11:58 -0500)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 3 Jan 2020 17:13:03 +0000 (12:13 -0500)
commitadd743b4348095c0d2e407c7a2b8a87a5f8194b0
tree5ef6842681207c2bb1fd9e4a24bbe81de0c562a8
parentba3484c051b62a662c555200f4a03b2e8df8e094
[OPENMP]Fix crash on error message for declare reduction.

If the qualified reduction name is specified and not found, the compiler
may crash because of not specified parameter.
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_reduction_messages.cpp