Skip to content
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

Upgrade Rust support for LLVM 8 #491

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Upgrade Rust support for LLVM 8 #491

merged 1 commit into from
Oct 23, 2019

Conversation

keram88
Copy link
Contributor

@keram88 keram88 commented Oct 22, 2019

This updates Rust support for the version of LLVM that SMACK uses.

@keram88
Copy link
Contributor Author

keram88 commented Oct 22, 2019

I plan to document how to use Smack on Rust programs, possibly as an update to #334.

auto mainFunc = CE->getOperand(0);
emit(Stmt::call(mainFunc->getName(), {}, {}));
}
auto mainFunction = dyn_cast<const Function>(castExpr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use cast<> if we don't check for possible nullptr?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this could be changed to cast.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

* Install the most recent Rust compiler to support LLVM 8
* Improve entry point detection
* Streamline Rust compiler installation. Closes #489
Copy link
Member

@zvonimir zvonimir left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@shaobo-he shaobo-he self-requested a review October 22, 2019 22:28
Copy link
Contributor

@shaobo-he shaobo-he left a comment

Choose a reason for hiding this comment

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

LGTM.

@zvonimir zvonimir merged commit 111d000 into develop Oct 23, 2019
@zvonimir zvonimir deleted the rust-llvm-7 branch October 23, 2019 01:03
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.

3 participants