Skip to content

Commit d17b6da

Browse files
committed
Fix recently introduced control path warnings with Clang
> warning: control may reach end of non-void function [-Wreturn-type]
1 parent 5fe6f33 commit d17b6da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/TypeRefinementContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ TypeRefinementContext::getAvailabilityConditionVersionSourceRange(
285285
case Reason::Root:
286286
return SourceRange();
287287
}
288+
289+
llvm_unreachable("Unhandled Reason in switch.");
288290
}
289291

290292
void TypeRefinementContext::print(raw_ostream &OS, SourceManager &SrcMgr,

0 commit comments

Comments
 (0)