diff --git a/src/dev/flang/fuir/analysis/TailCall.java b/src/dev/flang/fuir/analysis/TailCall.java index 7714472593..b54deb23be 100644 --- a/src/dev/flang/fuir/analysis/TailCall.java +++ b/src/dev/flang/fuir/analysis/TailCall.java @@ -204,7 +204,7 @@ private boolean sameField(int a, int b) */ private boolean isTailCall(int cl, int cls, int s, int mustAssignTo) { - return switch (_fuir.codeAt(cls)) + return _fuir.alwaysResultsInVoid(cls) || switch (_fuir.codeAt(cls)) { case Call -> {