mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
clover: Fix build against clang SVN >= r299965
clang::LangAS::Offset is gone, the behaviour is as if it was 0.
v2: Introduce and use clover::llvm::compat::lang_as_offset (Francisco
Jerez)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
46f49d6fdc
commit
a981e68c26
2 changed files with 7 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ namespace {
|
|||
cast<::llvm::PointerType>(actual_type)->getAddressSpace();
|
||||
|
||||
if (address_space == address_spaces[clang::LangAS::opencl_local
|
||||
- clang::LangAS::Offset]) {
|
||||
- compat::lang_as_offset]) {
|
||||
args.emplace_back(module::argument::local, arg_api_size,
|
||||
target_size, target_align,
|
||||
module::argument::zero_ext);
|
||||
|
|
|
|||
|
|
@ -67,6 +67,12 @@ namespace clover {
|
|||
typedef ::llvm::TargetLibraryInfo target_library_info;
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM >= 0x0500
|
||||
const auto lang_as_offset = 0;
|
||||
#else
|
||||
const auto lang_as_offset = clang::LangAS::Offset;
|
||||
#endif
|
||||
|
||||
inline void
|
||||
set_lang_defaults(clang::CompilerInvocation &inv,
|
||||
clang::LangOptions &lopts, clang::InputKind ik,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue