summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedran Miletić <[email protected]>2016-06-21 01:17:49 +0200
committerMichel Dänzer <[email protected]>2016-06-21 10:08:57 +0900
commit82e0bbd01abfb2073519941d9893fa6ac05fb58c (patch)
treeeda00b49ee6614289ef92fc74118c010fc128fc2
parentcd89c834a8b3b4e5f5874c8e1f90c9b01d541181 (diff)
clover: Fix build against clang SVN >= r273191
setLangDefaults() now requires PreprocessorOptions as an argument. Reviewed-and-Tested-by: Michel Dänzer <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index e2cadda64cf..57eaaaa9bab 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(