From b3897eb6f2776b18b1222f107d05e5565f4e2a58 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. llvm-svn: 326355 --- clang/lib/CodeGen/CGBlocks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 7bd6176..5c35e09 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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.7.4