clover: Fix build against clang SVN >= r273191
authorVedran Miletić <vedran@miletic.net>
Mon, 20 Jun 2016 23:17:49 +0000 (01:17 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 21 Jun 2016 01:08:57 +0000 (10:08 +0900)
setLangDefaults() now requires PreprocessorOptions as an argument.

Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index e2cadda64cfeb7cd31730004930828a38df90aff..57eaaaa9bab29c50571f15fdb80424094e1db437 100644 (file)
@@ -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(