From 581619f5a70c0e2ef6ac6d1e810b4f5a6e6416d4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 24 Sep 2012 21:07:55 +0000 Subject: [PATCH] clover: Fix build with libclang v3.2 Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 6ab9025f209..77b02de7e9e 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -120,7 +120,12 @@ namespace { c.getLangOpts().NoBuiltin = true; c.getTargetOpts().Triple = triple; +#if HAVE_LLVM <= 0x0301 c.getInvocation().setLangDefaults(clang::IK_OpenCL); +#else + c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL, + clang::LangStandard::lang_opencl11); +#endif c.createDiagnostics(0, NULL, new clang::TextDiagnosticPrinter( s_log, c.getDiagnosticOpts())); -- 2.30.2