From 0daab9878d2b96356cf667591a2c877d912be52d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 5 Apr 2016 15:43:35 +0900 Subject: [PATCH] clover: Fix build against clang SVN >= r265359 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel Dänzer Reviewed-by: Tom Stellard --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 4d11c2477c7..3fb35969a81 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -206,6 +206,9 @@ namespace { // http://www.llvm.org/bugs/show_bug.cgi?id=19735 c.getDiagnosticOpts().ShowCarets = false; c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL, +#if HAVE_LLVM >= 0x0309 + llvm::Triple(triple), +#endif clang::LangStandard::lang_opencl11); c.createDiagnostics( new clang::TextDiagnosticPrinter( -- 2.30.2