[PATCH] D51721: [Bindings][Go] Fixed go.test failure due to C-API argument type mismatch.

Kristina Brooks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 10:37:20 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL341680: [Bindings][Go] Fixed go.test failure due to C-API argument type mismatch. (authored by kristina, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D51721?vs=164161&id=164459#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51721

Files:
  llvm/trunk/bindings/go/llvm/dibuilder.go


Index: llvm/trunk/bindings/go/llvm/dibuilder.go
===================================================================
--- llvm/trunk/bindings/go/llvm/dibuilder.go
+++ llvm/trunk/bindings/go/llvm/dibuilder.go
@@ -298,7 +298,7 @@
 		name,
 		C.size_t(len(t.Name)),
 		C.uint64_t(t.SizeInBits),
-		C.unsigned(t.Encoding),
+		C.LLVMDWARFTypeEncoding(t.Encoding),
 		C.LLVMDIFlags(0),
 	)
 	return Metadata{C: result}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51721.164459.patch
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/ebbb1b1d/attachment.bin>


More information about the llvm-commits mailing list