diff options
Diffstat (limited to 'transform/panic.go')
-rw-r--r-- | transform/panic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/panic.go b/transform/panic.go index e8e9a1fe9..dee3bae06 100644 --- a/transform/panic.go +++ b/transform/panic.go @@ -27,7 +27,7 @@ func ReplacePanicsWithTrap(mod llvm.Module) { panic("expected use of a panic function to be a call") } builder.SetInsertPointBefore(use) - builder.CreateCall(trap, nil, "") + builder.CreateCall(trap.GlobalValueType(), trap, nil, "") } } } |