Add $debugtrap builtin. (#1220)

Add `$breakpoint` builtin.
This commit is contained in:
Christian Buttner
2024-07-04 00:50:29 +02:00
committed by GitHub
parent 4a50de8318
commit cc9ca35e04
8 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
module test;
fn void main()
{
$$breakpoint();
$$trap();
}
/* #expect: test.ll
call void @llvm.debugtrap()
call void @llvm.trap()