533903a2395e — Leonard Ritter a month ago
* added `trap` and `debugtrap` intrinsics
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/scopes/core.sc
M lib/scopes/core.sc +3 -0
@@ 8236,6 8236,9 @@ sugar typematch (...)
 # extensions to intrinsics
 #-------------------------------------------------------------------------------
 
+let trap = (extern 'llvm.trap (function noreturn))
+let debugtrap = (extern 'llvm.debugtrap (function void))
+
 inline distance (a b)
     length (a - b)