Skip to content

Commit c647979

Browse files
authored
Merge pull request #32825 from dan-zheng/autodiff-gardening
[AutoDiff] NFC: Reimplement derivative function cloners using pimpl pattern.
2 parents 88e17a6 + 8f8639b commit c647979

File tree

8 files changed

+1990
-2158
lines changed

8 files changed

+1990
-2158
lines changed

include/swift/SILOptimizer/Differentiation/ADContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ ADContext::emitNondifferentiabilityError(SourceLoc loc,
357357
return diagnose(loc, diag::autodiff_when_differentiating_function_call);
358358
}
359359
}
360-
llvm_unreachable("invalid invoker");
360+
llvm_unreachable("Invalid invoker kind"); // silences MSVC C4715
361361
}
362362

363363
} // end namespace autodiff

0 commit comments

Comments
 (0)