-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[upstream-update] Do not specify OpenFlags since it was removed upstr… #18472
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
[upstream-update] Do not specify OpenFlags since it was removed upstr… #18472
Conversation
@swift-ci smoke test and merge |
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.
No, you have to remove it from all callers too.
80a6ce1
to
66c0b3c
Compare
@jrose-apple done. |
66c0b3c
to
36b5fd3
Compare
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! Sorry for the poor communication.
lib/FrontendTool/FrontendTool.cpp
Outdated
@@ -322,8 +322,8 @@ static bool atomicallyWritingToTextFile( | |||
|
|||
bool actionFailed = false; | |||
std::error_code EC = | |||
swift::atomicallyWritingToFile(outputPath, /*binary*/false, | |||
[&](llvm::raw_pwrite_stream &out) { |
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.
Indentation got messed up 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.
llvm style I think would say that it should be two. That being said. I am fine fixing it in a subsequent commit.
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.
Heh. I looked for it, actually, and they don't say anything about what to do when wrapping lines. I thought clang-format double-indented wrapped lines, but I might be misremembering.
@swift-ci smoke test and merge |
1 similar comment
@swift-ci smoke test and merge |
Or I'll just fix it real quick |
…eam. This was removed upstream in https://reviews.llvm.org/D47789 since the only place this flag was used was in the windows implementation where the behavior triggered by this could be hidden in the implementation instead of being an argument. As such, this code doesn't compile on master-next. Since this has an acceptable default argument given the current stable, we can just fix this on master and everything will work. rdar://42862352
36b5fd3
to
7e70389
Compare
@swift-ci smoke test and merge |
5 similar comments
@swift-ci smoke test and merge |
@swift-ci smoke test and merge |
@swift-ci smoke test and merge |
@swift-ci smoke test and merge |
@swift-ci smoke test and merge |
https://reviews.llvm.org/D97785 reintroduced a flags parameter to `fs::createUniqueFile`, this time preceding `params`. (Compare: #18472) rdar://76036856
…eam.
This was removed upstream in https://reviews.llvm.org/D47789 since the only
place this flag was used was in the windows implementation where the behavior
triggered by this could be hidden in the implementation instead of being an
argument. As such, this code doesn't compile on master-next.
Since this has an acceptable default argument given the current stable, we can
just fix this on master and everything will work.
rdar://42862352