aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/llvm.cff1
-rw-r--r--test/2.cff2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/llvm.cff b/src/llvm.cff
index 200805d..1c6e983 100644
--- a/src/llvm.cff
+++ b/src/llvm.cff
@@ -922,6 +922,7 @@ fn nop() void {
}
fn genstmt(f *Fn, block *Block, st *Stmt) void {
+ gen(";; line %d\n", st.loc.line);
switch st.u {
case Block block;
genblock(f, block);
diff --git a/test/2.cff b/test/2.cff
index 9069d24..a677d16 100644
--- a/test/2.cff
+++ b/test/2.cff
@@ -1,6 +1,6 @@
import "libc.hff";
-bitfield Foo : uint {
+bitfield Foo : u16 {
tag 3,
flag (3, 1) bool,
num 10 signed,