Skip to content

Commit 7927f71

Browse files
committed
Make all-but-one tests pass. (The one failing test was failing before.)
1 parent 398884c commit 7927f71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/SILOptimizer/Mandatory/Differentiation.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "swift/AST/Expr.h"
3333
#include "swift/AST/GenericEnvironment.h"
3434
#include "swift/AST/GenericSignatureBuilder.h"
35+
#include "swift/AST/LazyResolver.h"
3536
#include "swift/AST/SourceFile.h"
3637
#include "swift/AST/ParameterList.h"
3738
#include "swift/AST/SubstitutionMap.h"
@@ -580,7 +581,7 @@ class LinearMapInfo {
580581
branchingTraceDecl->setGenericSignature(genericSig);
581582
computeAccessLevel(branchingTraceDecl,
582583
original->getEffectiveSymbolLinkage());
583-
// branchingTraceDecl->computeType(); // TODO(saeta): FIX ME!
584+
branchingTraceDecl->getInterfaceType();
584585
assert(branchingTraceDecl->hasInterfaceType());
585586
file.addVisibleDecl(branchingTraceDecl);
586587
// Add basic block enum cases.
@@ -604,7 +605,7 @@ class LinearMapInfo {
604605
/*IdentifierLoc*/ loc, DeclName(astCtx.getIdentifier(bbId)),
605606
paramList, loc, /*RawValueExpr*/ nullptr, branchingTraceDecl);
606607
enumEltDecl->setImplicit();
607-
// enumEltDecl->computeType(); // TODO(saeta): FIX ME!
608+
enumEltDecl->getInterfaceType();
608609
auto *enumCaseDecl = EnumCaseDecl::create(
609610
/*CaseLoc*/ loc, {enumEltDecl}, branchingTraceDecl);
610611
enumCaseDecl->setImplicit();
@@ -659,7 +660,7 @@ class LinearMapInfo {
659660
linearMapStruct->setGenericSignature(genericSig);
660661
computeAccessLevel(
661662
linearMapStruct, original->getEffectiveSymbolLinkage());
662-
// linearMapStruct->computeType(); // TODO(saeta): FIX ME!
663+
linearMapStruct->getInterfaceType();
663664
assert(linearMapStruct->hasInterfaceType());
664665
file.addVisibleDecl(linearMapStruct);
665666
return linearMapStruct;

unittests/AST/IndexSubsetTests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
// #include "swift/AST/AutoDiff.h" // TODO(saeta): CHECK ME!
1413
#include "swift/AST/IndexSubset.h"
1514
#include "TestContext.h"
1615
#include "gtest/gtest.h"

0 commit comments

Comments
 (0)