]> granicus.if.org Git - clang/commit
[OPENMP]Fix PR43355: DO not emit target calls if only -fopenmp-targets
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Sep 2019 15:53:51 +0000 (15:53 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Sep 2019 15:53:51 +0000 (15:53 +0000)
commitee61cebc3609fb8cdb968e0e6d0c54f22d868dcc
tree723137da058c8e33516b4a0ca061c20f267909af
parent2e9f804150df090d8a7155ac7aaec29ac8e94aa8
[OPENMP]Fix PR43355: DO not emit target calls if only -fopenmp-targets
is not provided.

We should not emit any target-dependent code if only -fopenmp flag is
used and device targets are not provided to prevent compiler crash.

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