From: Tom Stellard Date: Mon, 24 Sep 2012 21:07:55 +0000 (+0000) Subject: clover: Fix build with libclang v3.2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=581619f5a70c0e2ef6ac6d1e810b4f5a6e6416d4;p=mesa.git clover: Fix build with libclang v3.2 Reviewed-by: Francisco Jerez --- 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()));