[Mesa-dev] [PATCH] clover: Fix build against clang SVN >= r273191
Timo Aaltonen
tjaalton at ubuntu.com
Thu Sep 15 12:58:50 UTC 2016
On 21.06.2016 02:17, Vedran Miletić wrote:
> setLangDefaults() now requires PreprocessorOptions as an argument.
> ---
> src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index e2cadda..57eaaaa 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -207,7 +207,7 @@ namespace {
> c.getDiagnosticOpts().ShowCarets = false;
> c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL,
> #if HAVE_LLVM >= 0x0309
> - llvm::Triple(triple),
> + llvm::Triple(triple), c.getPreprocessorOpts(),
> #endif
> clang::LangStandard::lang_opencl11);
> c.createDiagnostics(
>
Emil,
Please add this to 12.0, since it's needed for using llvm-3.9 with 12.0.x.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=97542
--
t
More information about the mesa-dev
mailing list