Module: Mesa
Branch: master
Commit: b4a03e7f8f4006eb2c5b09a0611fdda153dd8437
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4a03e7f8f4006eb2c5b09a0611fdda153dd8437

Author: Michel Dänzer <michel.daen...@amd.com>
Date:   Wed Dec  9 15:46:46 2015 +0900

clover: Fix build against LLVM 3.8 SVN >= r255078

Reviewed-by: Francisco Jerez <curroje...@riseup.net>

---

 src/gallium/state_trackers/clover/llvm/invocation.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp 
b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 3b37f08..4d11c24 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -661,7 +661,11 @@ namespace {
 
       if (dump_asm) {
          LLVMSetTargetMachineAsmVerbosity(tm, true);
+#if HAVE_LLVM >= 0x0308
+         LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release());
+#else
          LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod));
+#endif
          emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log);
          buffer_size = LLVMGetBufferSize(out_buffer);
          buffer_data = LLVMGetBufferStart(out_buffer);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to