-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Fix warnings and error building swift/SILOptimizer on Windows with MSVC #5956
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
hughbe
commented
Nov 28, 2016
- Control path uncovered warning
- Non accessible method error
- Can't friend class error
- Sign conversion warnings
- Internal stdlib assertitions when compiling swift code
rudkx
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.
Otherwise LGTM but @eeckstein should probably take a quick look.
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.
The indentation is off here.
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.
Thanks, I also removed the double new line
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.
I think the right way to fix this is just friend SCCVisitor;, not to make the visit method public.
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.
I get an error: “class template has already been declared as a non-class template”
I think the fix is to change this to friend class SCCVisitor<IVInfo> which compiles in VS. I'm running a full build now to make sure.
EDIT: friend SCCVisitor also works, so I went for your suggestion instead
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.
SetVector has a getArrayRef method you can use instead.
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.
good idea, I also removed the MSVC 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.
Please wrap to 80 columns.
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.
fixed
|
LGTM |
|
@swift-ci Please smoke test and merge |
|
This didn't get merged either although tests passed! |