]> granicus.if.org Git - clang/commit
[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)
commitf7b558b2293a13ba2a2e8737e6655eb2337ae1c6
treecfa4e738d3652210034e29d1359a971a745f6e4a
parent9744ab9394c90dd48a0feb221fcf8d75504d5b21
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331195 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/target_codegen.cpp
test/OpenMP/target_messages.cpp