File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ class AbstractionPattern {
402
402
case Kind::Tuple:
403
403
return false ;
404
404
}
405
+ llvm_unreachable (" Unhandled AbstractionPatternKind in switch" );
405
406
}
406
407
407
408
CanGenericSignature getGenericSignature () const {
Original file line number Diff line number Diff line change @@ -2993,6 +2993,12 @@ void SILCoverageMap::dump() const {
2993
2993
}
2994
2994
2995
2995
#ifndef NDEBUG
2996
+ // Disable the "for use only in debugger" warning.
2997
+ #if SWIFT_COMPILER_IS_MSVC
2998
+ #pragma warning(push)
2999
+ #pragma warning(disable : 4996)
3000
+ #endif
3001
+
2996
3002
void SILDebugScope::dump (SourceManager &SM, llvm::raw_ostream &OS,
2997
3003
unsigned Indent) const {
2998
3004
OS << " {\n " ;
@@ -3026,6 +3032,10 @@ void SILDebugScope::dump(SILModule &Mod) const {
3026
3032
dump (Mod.getASTContext ().SourceMgr );
3027
3033
}
3028
3034
3035
+ #if SWIFT_COMPILER_IS_MSVC
3036
+ #pragma warning(pop)
3037
+ #endif
3038
+
3029
3039
#endif
3030
3040
3031
3041
void SILSpecializeAttr::print (llvm::raw_ostream &OS) const {
You can’t perform that action at this time.
0 commit comments