16 lines
668 B
Diff
16 lines
668 B
Diff
https://build.opensuse.org/package/show?project=X11%3AXOrg&package=Mesa
|
|
|
|
--- src/gallium/state_trackers/clover/llvm/invocation.cpp
|
|
+++ 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);
|