We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e2b88 commit 9edb640Copy full SHA for 9edb640
ir.go
@@ -919,7 +919,7 @@ func (v Value) IsConstantString() bool {
919
920
// ConstGetAsString will return the string contained in a constant.
921
func (v Value) ConstGetAsString() string {
922
- length := C.ulong(0)
+ length := C.size_t(0)
923
cstr := C.LLVMGetAsString(v.C, &length)
924
return C.GoStringN(cstr, C.int(length))
925
}
0 commit comments