Fixed warnings

llvm-svn: 304397
This commit is contained in:
Piotr Padlewski 2017-06-01 09:24:36 +00:00
parent 2eb0bcc9e6
commit 055477494b
2 changed files with 3 additions and 2 deletions

View File

@ -173,6 +173,7 @@ public:
case CK_UnusedFunctionPointer:
llvm_unreachable("Only function pointers kinds");
}
llvm_unreachable("Should already return");
}
private:

View File

@ -1393,8 +1393,8 @@ void CodeGenModule::EmitVTablesOpportunistically() {
// is not allowed to create new references to things that need to be emitted
// lazily. Note that it also uses fact that we eagerly emitting RTTI.
assert(OpportunisticVTables.empty() || shouldOpportunisticallyEmitVTables() &&
"Only emit opportunistic vtables with optimizations");
assert((OpportunisticVTables.empty() || shouldOpportunisticallyEmitVTables())
&& "Only emit opportunistic vtables with optimizations");
for (const CXXRecordDecl *RD : OpportunisticVTables) {
assert(getVTables().isVTableExternal(RD) &&