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 16e0971625
commit 928122c28f

View File

@ -145,7 +145,7 @@ func (d *DIBuilder) CreateCompileUnit(cu DICompileUnit) Metadata {
/*DWOId=*/ 0, /*DWOId=*/ 0,
/*SplitDebugInlining*/ C.LLVMBool(boolToCInt(true)), /*SplitDebugInlining*/ C.LLVMBool(boolToCInt(true)),
/*DebugInfoForProfiling*/ C.LLVMBool(boolToCInt(false)), /*DebugInfoForProfiling*/ C.LLVMBool(boolToCInt(false)),
sysroot, sysroot, C.size_t(len(cu.SysRoot)),
) )
return Metadata{C: result} return Metadata{C: result}
} }