From: Nico Weber Date: Wed, 28 Feb 2018 19:28:47 +0000 (+0000) Subject: Fix gcc -Wreturn-type warnings after r326307. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cda70934adc43ab3aed73118809a6d5213119251;p=clang Fix gcc -Wreturn-type warnings after r326307. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326355 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 7bd6176875..5c35e092fe 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -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: