Skip to content

Commit

Permalink
Minor edits.
Browse files Browse the repository at this point in the history
Revert changes to ParseSIL.cpp (namely making `convertRequirements` public).
  • Loading branch information
dan-zheng committed Jan 7, 2019
1 parent eb84095 commit c45d869
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions lib/ParseSIL/ParseSIL.cpp
Expand Up @@ -180,10 +180,8 @@ namespace {
GenericEnvironment *GenericEnv = nullptr,
DeclContext *DC = nullptr);

/*
void convertRequirements(SILFunction *F, ArrayRef<RequirementRepr> From,
SmallVectorImpl<Requirement> &To);
*/

ProtocolConformance *
parseProtocolConformanceHelper(ProtocolDecl *&proto,
Expand All @@ -196,10 +194,6 @@ namespace {
TUState(*static_cast<SILParserTUState *>(P.SIL)),
ParsedTypeCallback([](Type ty) {}) {}

// SWIFT_ENABLE_TENSORFLOW
void convertRequirements(SILFunction *F, ArrayRef<RequirementRepr> From,
SmallVectorImpl<Requirement> &To);

/// diagnoseProblems - After a function is fully parse, emit any diagnostics
/// for errors and return true if there were any.
bool diagnoseProblems();
Expand Down
1 change: 0 additions & 1 deletion test/Serialization/differentiable_attr.swift
@@ -1,5 +1,4 @@
// SWIFT_ENABLE_TENSORFLOW
// TODO: Handle trailing where clause in @differentiable attribute.

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -emit-module -parse-as-library -o %t
Expand Down

0 comments on commit c45d869

Please sign in to comment.