[llvm] 63c4261 - Pass length of string in Go binding of CreateCompileUnit

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 13:35:42 PST 2020


Author: Adrian Prantl
Date: 2020-01-17T13:35:30-08:00
New Revision: 63c4261720a76e7bd5b11e5eec735afe14d8a183

URL: https://github.com/llvm/llvm-project/commit/63c4261720a76e7bd5b11e5eec735afe14d8a183
DIFF: https://github.com/llvm/llvm-project/commit/63c4261720a76e7bd5b11e5eec735afe14d8a183.diff

LOG: Pass length of string in Go binding of CreateCompileUnit

Added: 
    

Modified: 
    llvm/bindings/go/llvm/dibuilder.go

Removed: 
    


################################################################################
diff  --git a/llvm/bindings/go/llvm/dibuilder.go b/llvm/bindings/go/llvm/dibuilder.go
index 438132687356..cba28f974d23 100644
--- a/llvm/bindings/go/llvm/dibuilder.go
+++ b/llvm/bindings/go/llvm/dibuilder.go
@@ -145,7 +145,7 @@ func (d *DIBuilder) CreateCompileUnit(cu DICompileUnit) Metadata {
 		/*DWOId=*/ 0,
 		/*SplitDebugInlining*/ C.LLVMBool(boolToCInt(true)),
 		/*DebugInfoForProfiling*/ C.LLVMBool(boolToCInt(false)),
-		sysroot,
+		sysroot, C.size_t(len(cu.SysRoot)),
 	)
 	return Metadata{C: result}
 }


        


More information about the llvm-commits mailing list