clover: Fix build against clang SVN >= r265359
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 5 Apr 2016 06:43:35 +0000 (15:43 +0900)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 5 Apr 2016 17:00:58 +0000 (17:00 +0000)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 4d11c2477c720991c994da8cf21c7c5c75c1a0a0..3fb35969a8101b37c6fc1942c8b6f661801db586 100644 (file)
@@ -206,6 +206,9 @@ namespace {
       // http://www.llvm.org/bugs/show_bug.cgi?id=19735
       c.getDiagnosticOpts().ShowCarets = false;
       c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL,
+#if HAVE_LLVM >= 0x0309
+                                        llvm::Triple(triple),
+#endif
                                         clang::LangStandard::lang_opencl11);
       c.createDiagnostics(
                           new clang::TextDiagnosticPrinter(