Skip to content

Commit 576d0b8

Browse files
authored
[AutoDiff] NFC: fix typos. (swiftlang#33461)
1 parent e2e6957 commit 576d0b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/SILOptimizer/Mandatory/Differentiation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ bool DifferentiationTransformer::processLinearFunctionInst(
13301330
cast<SILInstruction>(lfi));
13311331
PrettyStackTraceSILFunction fnTrace("...in", lfi->getFunction());
13321332
LLVM_DEBUG({
1333-
auto &s = getADDebugStream() << "Processing LinearFunctoinInst:\n";
1333+
auto &s = getADDebugStream() << "Processing LinearFunctionInst:\n";
13341334
lfi->printInContext(s);
13351335
});
13361336

@@ -1385,8 +1385,8 @@ void Differentiation::run() {
13851385
if (auto *dfi = dyn_cast<DifferentiableFunctionInst>(&i)) {
13861386
context.getDifferentiableFunctionInstWorklist().push_back(dfi);
13871387
} else if (auto *lfi = dyn_cast<LinearFunctionInst>(&i)) {
1388-
// If linear map transposition is not enable and an uncanonical
1389-
// `linear_function` instruction is encounter, emit a diagnostic.
1388+
// If linear map transposition is not enabled and an uncanonical
1389+
// `linear_function` instruction is encountered, emit a diagnostic.
13901390
// FIXME(SR-11850): Finish support for linear map transposition.
13911391
if (!EnableExperimentalLinearMapTransposition) {
13921392
if (!lfi->hasTransposeFunction()) {

0 commit comments

Comments
 (0)