[OPENMP] Do not crash on incorrect input data.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 30 Apr 2018 16:26:57 +0000 (16:26 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 30 Apr 2018 16:26:57 +0000 (16:26 +0000)
commit64e62dcfff8eb68118ac9d5f8c3de1733505cb70
tree98b09bec86ca2f7269f6ad395a88415f37bb9388
parent55c84b1a4e98a1674cfa4508bd2c42b831f49369
[OPENMP] Do not crash on incorrect input data.

Emit error messages instead of compiler crashing when the target region
does not exist in the device code + fix crash when the location comes
from macros.

llvm-svn: 331195
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_codegen.cpp
clang/test/OpenMP/target_messages.cpp