From cda70934adc43ab3aed73118809a6d5213119251 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 28 Feb 2018 19:28:47 +0000 Subject: [PATCH] Fix gcc -Wreturn-type warnings after r326307. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326355 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGBlocks.cpp | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.40.0