[OPENMP] Fix PR47063: crash when trying to get captured statetment.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 12 Aug 2020 15:48:53 +0000 (11:48 -0400)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 12 Aug 2020 16:05:58 +0000 (12:05 -0400)
commitfbd6d2c54e57a4968d29bb22742dd49759b3ecd0
tree4f0c0b19da3254fceb04a2766357f60b86ba473f
parent8d4860aa9ee78f4c948b5f38a043c527d49d6a34
[OPENMP] Fix PR47063: crash when trying to get captured statetment.

Need to call getRawStmt() function instead, when trying to get inner
associated statement for the executable directive. Not all directives
use captured statements.
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_codegen.cpp