[OPENMP50]Do not imply lvalue as base expression in array shaping
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 30 Mar 2020 20:28:59 +0000 (16:28 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 30 Mar 2020 21:07:08 +0000 (17:07 -0400)
commita4f74f377b7c42d38a230a19996e3a7fa5a328c7
treee18ce87580c60d2270912c5dcb3c06ef92069cba
parent2641ba52a9c66d1d83e25646228a2574f3c22773
[OPENMP50]Do not imply lvalue as base expression in array shaping
expression.

We should not assume that the base expression in the array shaping
operation is an lvalue of some form, it may be an rvalue.
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/OpenMP/task_codegen.c