Update unreachable control path annotations

This commit is contained in:
Hugh Bellamy
2017-03-03 20:21:22 +07:00
parent 8e439da07d
commit 33f5f89912
7 changed files with 60 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
#include "swift/Syntax/TypeSyntax.h"
#include "swift/Syntax/StmtSyntax.h"
#include "swift/Syntax/UnknownSyntax.h"
#include "llvm/Support/ErrorHandling.h"
using namespace swift;
using namespace swift::syntax;
@@ -44,6 +45,8 @@ RC<SyntaxData> SyntaxData::makeDataFromRaw(RC<RawSyntax> Raw,
case SyntaxKind::Token:
llvm_unreachable("Can't make a SyntaxData from a Token!");
}
llvm_unreachable("Unhandled SyntaxKind in switch.");
}
bool SyntaxData::isType() const {