Disallow return of non-primitive values #376
No reviewers
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#376
Loading…
Reference in New Issue
No description provided.
Delete Branch "enhance/disallow-non-primitive-return"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Returning of non-primitive values is currently broken, as they will return a pointer to a locally
alloca
-ed value, which is then freed at the moment the function returns.Disallow this until escape analysis (#54) or some other workaround is implemented.