Silence some MSVC warnings about not all control paths returning a value; NFC.

llvm-svn: 318809
This commit is contained in:
Aaron Ballman 2017-11-21 22:24:13 +00:00
parent 020294811f
commit feeb0b705c
2 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,7 @@ bool operator==(const Expr &L, const Expr &R) {
case Expr::Object:
return *L.object() == *R.object();
}
llvm_unreachable("Unknown expressiopn kind");
}
} // namespace json
} // namespace clangd

View File

@ -162,6 +162,7 @@ public:
case T_Array:
return Array;
}
llvm_unreachable("Unknown kind");
}
// Typed accessors return None/nullptr if the Expr is not of this type.