mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
all: add type parameter to *GEP calls
This is necessary for LLVM 15.
This commit is contained in:
committed by
Ron Evans
parent
7b6a9fab42
commit
f57cffce2d
+2
-2
@@ -223,7 +223,7 @@ func MakeGCStackSlots(mod llvm.Module) bool {
|
||||
|
||||
// Update stack start.
|
||||
parent := builder.CreateLoad(stackChainStartType, stackChainStart, "")
|
||||
gep := builder.CreateGEP(stackObject, []llvm.Value{
|
||||
gep := builder.CreateGEP(stackObjectType, stackObject, []llvm.Value{
|
||||
llvm.ConstInt(ctx.Int32Type(), 0, false),
|
||||
llvm.ConstInt(ctx.Int32Type(), 0, false),
|
||||
}, "")
|
||||
@@ -244,7 +244,7 @@ func MakeGCStackSlots(mod llvm.Module) bool {
|
||||
builder.SetInsertPointBefore(insertionPoint)
|
||||
|
||||
// Extract a pointer to the appropriate section of the stack object.
|
||||
gep := builder.CreateGEP(stackObject, []llvm.Value{
|
||||
gep := builder.CreateGEP(stackObjectType, stackObject, []llvm.Value{
|
||||
llvm.ConstInt(ctx.Int32Type(), 0, false),
|
||||
llvm.ConstInt(ctx.Int32Type(), uint64(2+i), false),
|
||||
}, "")
|
||||
|
||||
Reference in New Issue
Block a user