Pass length of string in Go binding of CreateCompileUnit

This commit is contained in:
Adrian Prantl 2020-01-17 13:34:46 -08:00
parent 97ba483026
commit 63c4261720
1 changed files with 1 additions and 1 deletions

View File

@ -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}
}