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 d913dfe commit a64f3f2Copy full SHA for a64f3f2
unittests/Driver/MockingFineGrainedDependencyGraphs.cpp
@@ -44,8 +44,14 @@ mocking_fine_grained_dependency_graphs::getChangesForSimulatedLoad(
44
cmd->getOutput().getAdditionalOutputForType(file_types::TY_SwiftDeps).str();
45
assert(!swiftDeps.empty());
46
swiftDeps.resize(Fingerprint::DIGEST_LENGTH, 'X');
47
+ auto swiftDepsFingerprint = Fingerprint::fromString(swiftDeps);
48
+ if (!swiftDepsFingerprint) {
49
+ llvm::errs() << "unconvertable fingerprint from switdeps ':"
50
+ << swiftDeps << "'\n";
51
+ abort();
52
+ }
53
auto interfaceHash =
- interfaceHashIfNonEmpty.getValueOr(Fingerprint::fromString(swiftDeps));
54
+ interfaceHashIfNonEmpty.getValueOr(swiftDepsFingerprint.getValue());
55
56
SourceManager sm;
57
DiagnosticEngine diags(sm);
0 commit comments