-
Notifications
You must be signed in to change notification settings - Fork 85
Upgrade Rust support for LLVM 8 #491
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
Conversation
|
I plan to document how to use Smack on Rust programs, possibly as an update to #334. |
lib/smack/SmackInstGenerator.cpp
Outdated
| auto mainFunc = CE->getOperand(0); | ||
| emit(Stmt::call(mainFunc->getName(), {}, {})); | ||
| } | ||
| auto mainFunction = dyn_cast<const Function>(castExpr); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
zvonimir
left a comment
There was a problem hiding this 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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This updates Rust support for the version of LLVM that SMACK uses.