Fix forward for "signed version of createExpression" change in https://github.com/llvm/llvm-project/commit/
ec501f15a8b8ace2b283732740d6d65d40d82e09
Reviewed By: bgraur, achieveartificialintelligence
Differential Revision: https://reviews.llvm.org/D116301
// CreateExpression creates a new descriptor for the specified
// variable which has a complex address expression for its address.
-func (d *DIBuilder) CreateExpression(addr []int64) Metadata {
- var data *C.int64_t
+func (d *DIBuilder) CreateExpression(addr []uint64) Metadata {
+ var data *C.uint64_t
if len(addr) > 0 {
- data = (*C.int64_t)(unsafe.Pointer(&addr[0]))
+ data = (*C.uint64_t)(unsafe.Pointer(&addr[0]))
}
result := C.LLVMDIBuilderCreateExpression(d.ref, data, C.size_t(len(addr)))
return Metadata{C: result}