mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[master-next] Replace use of F_RW flag that was removed in LLVM r334221
Use a combination of the new FA_Read and FA_Write flags instead.
This commit is contained in:
@@ -1227,7 +1227,8 @@ void Decl::dump() const {
|
|||||||
|
|
||||||
void Decl::dump(const char *filename) const {
|
void Decl::dump(const char *filename) const {
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
llvm::raw_fd_ostream stream(filename, ec, llvm::sys::fs::F_RW);
|
llvm::raw_fd_ostream stream(filename, ec, llvm::sys::fs::FA_Read |
|
||||||
|
llvm::sys::fs::FA_Write);
|
||||||
// In assert builds, we blow up. Otherwise, we just return.
|
// In assert builds, we blow up. Otherwise, we just return.
|
||||||
assert(!ec && "Failed to open file for dumping?!");
|
assert(!ec && "Failed to open file for dumping?!");
|
||||||
if (ec)
|
if (ec)
|
||||||
|
|||||||
Reference in New Issue
Block a user