clover: Fix build after clang r367864
v2: Drop special case of llvm-9 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Acked-by: Dieter Nützel <Dieter@nuetzel-hh.de> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Reviewed-by: Aaron Watry <awatry@gmail.com>
This commit is contained in:
parent
d81e11332b
commit
6b8269d0bb
|
@ -79,11 +79,17 @@ namespace clover {
|
|||
#endif
|
||||
}
|
||||
|
||||
#if HAVE_LLVM >= 0x0500
|
||||
#if HAVE_LLVM >= 0x1000
|
||||
const clang::InputKind ik_opencl = clang::Language::OpenCL;
|
||||
#elif HAVE_LLVM >= 0x0500
|
||||
const clang::InputKind ik_opencl = clang::InputKind::OpenCL;
|
||||
const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
|
||||
#else
|
||||
const clang::InputKind ik_opencl = clang::IK_OpenCL;
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM >= 0x0500
|
||||
const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl10;
|
||||
#else
|
||||
const clang::LangStandard::Kind lang_opencl10 = clang::LangStandard::lang_opencl;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue