clover: Fix build against clang SVN >= r299965
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 12 Apr 2017 08:17:34 +0000 (17:17 +0900)
committerMichel Dänzer <michel@daenzer.net>
Thu, 13 Apr 2017 03:51:24 +0000 (12:51 +0900)
commita981e68c26dc4079a335101da0033185030207f6
tree6d45ea57ea41d4ac8fa24d595eece793695b5166
parent46f49d6fdcb9772fcc7ff3e533646b1b44c5adb9
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>
src/gallium/state_trackers/clover/llvm/codegen/common.cpp
src/gallium/state_trackers/clover/llvm/compat.hpp