We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd0044 commit a8119c5Copy full SHA for a8119c5
lib/Driver/DriverIncrementalRanges.cpp
@@ -84,10 +84,14 @@ Optional<SourceRangeBasedInfo> SourceRangeBasedInfo::loadInfoForOnePrimary(
84
DiagnosticEngine &diags) {
85
86
auto removeSupplementaryPaths = [&] {
87
- if (auto ec = llvm::sys::fs::remove(compiledSourcePath))
+ if (auto ec = llvm::sys::fs::remove(compiledSourcePath)) {
88
+ (void)ec;
89
llvm::errs() << "WARNING could not remove: " << compiledSourcePath;
- if (auto ec = llvm::sys::fs::remove(swiftRangesPath))
90
+ }
91
+ if (auto ec = llvm::sys::fs::remove(swiftRangesPath)) {
92
93
llvm::errs() << "WARNING could not remove: " << swiftRangesPath;
94
95
};
96
97
assert(!primaryInputPath.empty() && "Must have a primary to load info.");
0 commit comments