forked from AbleOS/holey-bytes
fixing outdated error message
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
3f11e19a91
commit
4ebf1c7996
|
@ -2911,7 +2911,10 @@ impl<'a> Codegen<'a> {
|
|||
&& (!self.ci.nodes[ctrl.get()].kind.is_call()
|
||||
|| self.ci.nodes[ctrl.get()].inputs[0] != prev_ctrl)
|
||||
{
|
||||
self.error(body.pos(), "function is makred inline but it contains controlflow");
|
||||
self.error(
|
||||
body.pos(),
|
||||
"function is makred inline but it contains controlflow or more then one call",
|
||||
);
|
||||
}
|
||||
|
||||
// this is here because we report error in the inline function file
|
||||
|
|
Loading…
Reference in a new issue