[PATCH] D74578: [GWP-ASan] Silence gcc error

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 13:01:56 PST 2020


cryptoad created this revision.
cryptoad added reviewers: eugenis, hctim, morehouse.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.

It complains about reaching the end of a non-void returning function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74578

Files:
  compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp


Index: compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
+++ compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
@@ -84,6 +84,7 @@
   case AlignmentStrategy::DEFAULT:
     __builtin_unreachable();
   }
+  __builtin_unreachable();
 }
 
 } // namespace gwp_asan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74578.244514.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/11e6fb61/attachment.bin>


More information about the llvm-commits mailing list