clover: Fix build against clang SVN >= r267772
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 28 Apr 2016 03:57:03 +0000 (12:57 +0900)
committerMichel Dänzer <michel.daenzer@amd.com>
Thu, 28 Apr 2016 03:57:03 +0000 (12:57 +0900)
(Re-pushing previous fix for clang SVN r265359, which was reverted in
the meantime)

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 fb757886381d69cbc540778d5e417dfa5740ebee..96f6a485a40cfe90f5774943b7827f107473041c 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(