]> granicus.if.org Git - clang/commitdiff
Fix gcc -Wreturn-type warnings after r326307.
authorNico Weber <nicolasweber@gmx.de>
Wed, 28 Feb 2018 19:28:47 +0000 (19:28 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 28 Feb 2018 19:28:47 +0000 (19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index 7bd61768758b57e057592c2dfb814d08a6694b20..5c35e092febdff6b9b9fe9d5fd23c8d467a2abfe 100644 (file)
@@ -1595,6 +1595,7 @@ computeCopyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T,
     return std::make_pair(BlockCaptureEntityKind::None, BlockFieldFlags());
   }
   }
+  llvm_unreachable("after exhaustive PrimitiveCopyKind switch");
 }
 
 /// Find the set of block captures that need to be explicitly copied or destroy.
@@ -1797,6 +1798,7 @@ computeDestroyInfoForBlockCapture(const BlockDecl::Capture &CI, QualType T,
     return std::make_pair(BlockCaptureEntityKind::None, BlockFieldFlags());
   }
   }
+  llvm_unreachable("after exhaustive DestructionKind switch");
 }
 
 /// Generate the destroy-helper function for a block closure object: