diff options
author | Michel Dänzer <[email protected]> | 2016-04-05 15:43:35 +0900 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2016-04-05 17:00:58 +0000 |
commit | 0daab9878d2b96356cf667591a2c877d912be52d (patch) | |
tree | 9ed17bad074d99f03a29c3e5fde15ccdd5f6dc1a /src/gallium/state_trackers | |
parent | 799789ba99f4bd27119cf46cc0e7f5384ec3d01e (diff) |
clover: Fix build against clang SVN >= r265359
Signed-off-by: Michel Dänzer <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/invocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 4d11c2477c7..3fb35969a81 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -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( |