diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-02-28 19:28:47 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-02-28 19:28:47 +0000 |
commit | b3897eb6f2776b18b1222f107d05e5565f4e2a58 (patch) | |
tree | 9b7e9042da3dff75d21a0b2cdd13a8739c7da096 /clang/lib/CodeGen | |
parent | 3fd89019281400a0ae62eabf3ec3cb5a410d4416 (diff) | |
download | bcm5719-llvm-b3897eb6f2776b18b1222f107d05e5565f4e2a58.tar.gz bcm5719-llvm-b3897eb6f2776b18b1222f107d05e5565f4e2a58.zip |
Fix gcc -Wreturn-type warnings after r326307.
llvm-svn: 326355
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 7bd61768758..5c35e092feb 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: |