[OPENMP] Fix for PR31417: assert failure when compiling trivial openmp
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 22 Dec 2016 19:44:05 +0000 (19:44 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 22 Dec 2016 19:44:05 +0000 (19:44 +0000)
commit5e87c3465ec262cab99f1f832e0be1d0076c201c
treeb0dcce601ab164c39992c47e86c9559559afbe32
parentf3f01aba48188c06d267aa270bdcc5f2eb502caf
[OPENMP] Fix for PR31417: assert failure when compiling trivial openmp
program

Offload related code is not quite ready yet, but some simple examples
must not crash the compiler. Patch fixes the problem in offloading code
with exceptions.

llvm-svn: 290364
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/test/OpenMP/nvptx_target_codegen.cpp