Skip to content

Skip functions that pass arrays or structs by value #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 16, 2018

Conversation

kornilova203
Copy link
Member

Closes #118

@kornilova203 kornilova203 force-pushed the skip-illegal-scala-functions branch from 41e2526 to 9e7bb2d Compare July 12, 2018 14:40
@kornilova203 kornilova203 requested a review from jonas July 12, 2018 14:40
* @return true if the typedef is an alias for give type directly or through
* a chain of typedefs
*/
template <typename T> bool isAliasFor() const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a reimplementation of isAliasForType?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true
I removed duplicate

llvm::errs()
<< "Warning: Function " << func->getName()
<< " is skipped because Scala Native does not support "
"passing structs and arrays by value.\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have a test for this. As I mentioned in another PR it might be preferable to do such testing in a separate test class.

@jonas
Copy link
Member

jonas commented Jul 13, 2018

It would be good to update the limitations doc to mention that such methods are skipped.

@kornilova203 kornilova203 merged commit a10d3a3 into master Jul 16, 2018
@kornilova203 kornilova203 deleted the skip-illegal-scala-functions branch July 16, 2018 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants