From d485c67d9ad3ce2f63e0d61dd9eb419e6c4b71b0 Mon Sep 17 00:00:00 2001 From: Kristina Brooks Date: Fri, 7 Sep 2018 17:33:43 +0000 Subject: [PATCH] [Bindings][Go] Fixed go.test failure due to C-API argument type mismatch. go.test was failing previously with error, Command Output (stderr): dibuilder.go:301: cannot use C.uint(t.Encoding) (type C.uint) as type C.LLVMDWARFTypeEncoding in argument to func literal This patch fixes the argument type. Patch by Chirag (Chirag Patel) Differential Revision: https://reviews.llvm.org/D51721 llvm-svn: 341680 --- bindings/go/llvm/dibuilder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/llvm/dibuilder.go b/bindings/go/llvm/dibuilder.go index dbf6237868a..98382df9509 100644 --- a/bindings/go/llvm/dibuilder.go +++ b/bindings/go/llvm/dibuilder.go @@ -298,7 +298,7 @@ func (d *DIBuilder) CreateBasicType(t DIBasicType) Metadata { 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}