summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorKristina Brooks <kristina@nym.hush.com>2018-09-07 17:33:43 +0000
committerKristina Brooks <kristina@nym.hush.com>2018-09-07 17:33:43 +0000
commitd8bdf16cfe6d0e3b955a7d2f459b4c2b138156db (patch)
tree02a49b97aa238b526b0803049e0b66d1a00ed655 /llvm
parente2dc6929194ff388abaf498437cf4f15f9abdfc9 (diff)
downloadbcm5719-llvm-d8bdf16cfe6d0e3b955a7d2f459b4c2b138156db.tar.gz
bcm5719-llvm-d8bdf16cfe6d0e3b955a7d2f459b4c2b138156db.zip
[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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/bindings/go/llvm/dibuilder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/bindings/go/llvm/dibuilder.go b/llvm/bindings/go/llvm/dibuilder.go
index dbf6237868a..98382df9509 100644
--- a/llvm/bindings/go/llvm/dibuilder.go
+++ b/llvm/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}
OpenPOWER on IntegriCloud