Skip to content

Commit 207d6b1

Browse files
committed
declare all LLVM function imports unsafe: executing thread will block
1 parent 2948f0f commit 207d6b1

File tree

1 file changed

+2
-2
lines changed
  • booster/library/Booster/LLVM

1 file changed

+2
-2
lines changed

booster/library/Booster/LLVM/TH.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ foreignImport name' ty' = do
8989
libHandle <- TH.newName "libHandle"
9090

9191
pure
92-
[ -- foreign import ccall "dynamic" <camel_name>Unwrap :: FunPtr <ty> -> <ty>
92+
[ -- foreign import ccall unsafe "dynamic" <camel_name>Unwrap :: FunPtr <ty> -> <ty>
9393
TH.ForeignD $
94-
TH.ImportF TH.CCall TH.Safe "dynamic" nameUnwrap $
94+
TH.ImportF TH.CCall TH.Unsafe "dynamic" nameUnwrap $
9595
TH.AppT (TH.AppT TH.ArrowT $ TH.AppT (TH.ConT ''FunPtr) ty) ty
9696
, -- <camel_name>FunPtr :: ReaderT DL IO (FunPtr <ty>)
9797
TH.SigD

0 commit comments

Comments
 (0)