Skip to content

Commit 331b5a2

Browse files
author
Sasha Krassovsky
committed
---
yaml --- r: 327666 b: refs/heads/tensorflow c: 1e414f7 h: refs/heads/master
1 parent aa03589 commit 331b5a2

File tree

10 files changed

+19
-1
lines changed

10 files changed

+19
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: b8fb2e5eae295370491357e0323571984f0376f5
819+
refs/heads/tensorflow: 1e414f7fb6d6620a795f1bf68a893111b6e3bf89
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/include/swift/AST/PropertyWrappers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ struct PropertyWrapperMutability {
109109
}
110110
return std::max(Getter, Setter);
111111
}
112+
llvm_unreachable("Unhandled Value in switch");
112113
}
113114

114115
bool operator==(PropertyWrapperMutability other) const {

branches/tensorflow/include/swift/AST/Requirement.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class Requirement {
167167
case RequirementKind::Layout:
168168
return lhs.getLayoutConstraint() == rhs.getLayoutConstraint();
169169
}
170+
llvm_unreachable("Unhandled RequirementKind in switch");
170171
}
171172
};
172173

branches/tensorflow/include/swift/AST/ResilienceExpansion.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &os,
5454
case ResilienceExpansion::Maximal:
5555
return os << "Maximal";
5656
}
57+
llvm_unreachable("Unhandled ResilienceExpansion in switch");
5758
}
5859

5960
} // namespace swift

branches/tensorflow/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4477,6 +4477,7 @@ bool ASTContext::overrideGenericSignatureReqsSatisfied(
44774477
case OverrideGenericSignatureReqCheck::DerivedReqSatisfiedByBase:
44784478
return derivedSig->requirementsNotSatisfiedBy(sig).empty();
44794479
}
4480+
llvm_unreachable("Unhandled OverrideGenericSignatureReqCheck in switch");
44804481
}
44814482

44824483
SILLayout *SILLayout::get(ASTContext &C,

branches/tensorflow/lib/AST/ASTScope.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ Optional<bool> ASTScope::computeIsCascadingUse(
5353
return ASTScopeImpl::computeIsCascadingUse(history, initialIsCascadingUse);
5454
}
5555

56+
#if SWIFT_COMPILER_IS_MSVC
57+
#pragma warning(push)
58+
#pragma warning(disable : 4996)
59+
#endif
60+
5661
void ASTScope::dump() const { impl->dump(); }
62+
63+
#if SWIFT_COMPILER_IS_MSVC
64+
#pragma warning(pop)
65+
#endif
66+
5767
void ASTScope::print(llvm::raw_ostream &out) const { impl->print(out); }
5868
void ASTScope::dumpOneScopeMapLocation(std::pair<unsigned, unsigned> lineCol) {
5969
impl->dumpOneScopeMapLocation(lineCol);

branches/tensorflow/lib/AST/ASTScopeCreation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ ConditionalClauseScope::expandAScopeThatCreatesANewInsertionPoint(
11781178
return {ccPatternUseScope,
11791179
"Succeeding code must be in scope of conditional variables"};
11801180
}
1181+
llvm_unreachable("Unhandled StmtConditionKind in switch");
11811182
}
11821183

11831184
AnnotatedInsertionPoint

branches/tensorflow/lib/AST/Decl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7660,6 +7660,7 @@ ParseAbstractFunctionBodyRequest::getCachedResult() const {
76607660
case BodyKind::Unparsed:
76617661
return None;
76627662
}
7663+
llvm_unreachable("Unhandled BodyKing in switch");
76637664
}
76647665

76657666
void ParseAbstractFunctionBodyRequest::cacheResult(BraceStmt *value) const {

branches/tensorflow/lib/AST/DeclContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,7 @@ SourceLoc swift::extractNearestSourceLoc(const DeclContext *dc) {
10371037
case DeclContextKind::SerializedLocal:
10381038
return extractNearestSourceLoc(dc->getParent());
10391039
}
1040+
llvm_unreachable("Unhandled DeclCopntextKindin switch");
10401041
}
10411042

10421043
#define DECL(Id, Parent) \

branches/tensorflow/lib/AST/GenericSignature.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,4 +1091,5 @@ Requirement Requirement::getCanonical() const {
10911091
case RequirementKind::Layout:
10921092
return Requirement(getKind(), firstType, getLayoutConstraint());
10931093
}
1094+
llvm_unreachable("Unhandled RequirementKind in switch");
10941095
}

0 commit comments

Comments
 (0)