]> granicus.if.org Git - clang/commitdiff
Fixed warnings
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Thu, 1 Jun 2017 09:24:36 +0000 (09:24 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Thu, 1 Jun 2017 09:24:36 +0000 (09:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304397 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/VTableBuilder.h
lib/CodeGen/CodeGenModule.cpp

index 6db69ae9250b30e8c25f3fb8f0d5336249e9d1ae..b0b71e473516dc7499b56aaf54de5fd42314a2d8 100644 (file)
@@ -173,6 +173,7 @@ public:
     case CK_UnusedFunctionPointer:
       llvm_unreachable("Only function pointers kinds");
     }
+    llvm_unreachable("Should already return");
   }
 
 private:
index b7a3777fe458fffcb8d204d7aaacf47c60abdcde..c61a5f6ffa719f57b0e14862a1b0734a8da0299b 100644 (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) &&