[PATCH] D116301: Fix forward for "signed version of createExpression"

Anton Daubert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 27 02:28:58 PST 2021


antondaubert created this revision.
antondaubert added a reviewer: bgraur.
antondaubert requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fix forward for "signed version of createExpression" change in https://github.com/llvm/llvm-project/commit/ec501f15a8b8ace2b283732740d6d65d40d82e09


Repository:
  rG LLVM Github Monorepo

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
@@ -564,9 +564,9 @@
 // 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
+	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.396282.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211227/bc6b7d3e/attachment.bin>


More information about the llvm-commits mailing list