fixing outdated error message

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-25 21:34:58 +01:00
parent 3f11e19a91
commit 4ebf1c7996
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -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