You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/06/22 03:04:04 UTC

[jira] [Updated] (DRILL-1054) Handle "return" statement within function templates

     [ https://issues.apache.org/jira/browse/DRILL-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mehant Baid updated DRILL-1054:
-------------------------------

    Attachment: DRILL-1054.patch

> Handle "return" statement within function templates
> ---------------------------------------------------
>
>                 Key: DRILL-1054
>                 URL: https://issues.apache.org/jira/browse/DRILL-1054
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Mehant Baid
>            Assignee: Mehant Baid
>            Priority: Minor
>         Attachments: DRILL-1054.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)