[OPENMP] Do not cast captured by value variables with pointer types in
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Apr 2018 17:33:41 +0000 (17:33 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Apr 2018 17:33:41 +0000 (17:33 +0000)
commit2091ca6c977097bdbbd5c377b357a9bc85b1a489
treea82d48c27506252fb67ad5b55ddbf196eb1e88aa
parent061fcd586d30fc0ea15233763ef892558013c119
[OPENMP] Do not cast captured by value variables with pointer types in
NVPTX target.

When generating the wrapper function for the offloading region, we need
to call the outlined function and cast the arguments correctly to follow
the ABI. Usually, variables captured by value are casted to `uintptr_t`
type. But this should not performed for the variables with pointer type.

llvm-svn: 330620
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp