mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[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
This commit is contained in:
parent
2262c8b8b6
commit
d485c67d9a
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user