Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently if the function template contains a return statement, we would simply use it as is in the runtime generated code. Since we can possibly combine multiply function templates' code into one runtime generated class we might hit compilation errors of the form "Unreachable code" due to a "return" in the middle of the function.
This patch will replace the return with suitable break statements before we use it in the runtime generated code.