1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

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,
/*SplitDebugInlining*/ C.LLVMBool(boolToCInt(true)),
/*DebugInfoForProfiling*/ C.LLVMBool(boolToCInt(false)),
sysroot,
sysroot, C.size_t(len(cu.SysRoot)),
)
return Metadata{C: result}
}