[PATCH] D116301: Fix forward for "signed version of createExpression"
Bogdan Graur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 27 04:53:28 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGba89c6d50569: Fix forward for "signed version of createExpression" (authored by antondaubert, committed by bgraur).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116301/new/
https://reviews.llvm.org/D116301
Files:
llvm/bindings/go/llvm/dibuilder.go
Index: llvm/bindings/go/llvm/dibuilder.go
===================================================================
--- llvm/bindings/go/llvm/dibuilder.go
+++ llvm/bindings/go/llvm/dibuilder.go
@@ -563,10 +563,10 @@
// 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}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116301.396290.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211227/60a84070/attachment.bin>
More information about the llvm-commits
mailing list