forked from AbleOS/holey-bytes
adding interesting asert
This commit is contained in:
parent
f83194359c
commit
1c135a3050
|
@ -24,6 +24,7 @@ use {
|
|||
fmt::{self, Debug, Display, Write},
|
||||
format_args as fa, mem,
|
||||
ops::{self, Range},
|
||||
usize,
|
||||
},
|
||||
hashbrown::hash_map,
|
||||
hbbytecode::DisasmError,
|
||||
|
@ -2792,6 +2793,11 @@ impl<'a> Codegen<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
debug_assert_eq!(
|
||||
lexer::Lexer::new(&self.file().file[pos as usize..]).eat().kind,
|
||||
TokenKind::Return
|
||||
);
|
||||
|
||||
let ret = self.ci.nodes.new_node_nop(
|
||||
ty::Id::VOID,
|
||||
Kind::Return { file: self.ci.file },
|
||||
|
|
Loading…
Reference in a new issue