[llvm] r289775 - Fix go bindings after r289702 (hopefully, don't really know how to build

Daniel Jasper via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 22:54:30 PST 2016

Author: djasper
Date: Thu Dec 15 00:54:29 2016
New Revision: 289775

URL: http://llvm.org/viewvc/llvm-project?rev=289775&view=rev
Fix go bindings after r289702 (hopefully, don't really know how to build
them, build.sh seems to be broken).


Modified: llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp?rev=289775&r1=289774&r2=289775&view=diff
--- llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp (original)
+++ llvm/trunk/bindings/go/llvm/DIBuilderBindings.cpp Thu Dec 15 00:54:29 2016
@@ -40,8 +40,8 @@ LLVMMetadataRef LLVMDIBuilderCreateCompi
                                                int Optimized, const char *Flags,
                                                unsigned RuntimeVersion) {
   DIBuilder *D = unwrap(Dref);
-  return wrap(D->createCompileUnit(Lang, File, Dir, Producer, Optimized, Flags,
-                                   RuntimeVersion));
+  return wrap(D->createCompileUnit(Lang, D->createFile(File, Dir), Producer,
+                                   Optimized, Flags, RuntimeVersion));
 LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef Dref, const char *File,

More information about the llvm-commits mailing list