[compiler-rt] ef7488e - [GWP-ASan] Silence gcc error

Kostya Kortchinsky via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 13:08:50 PST 2020


Author: Kostya Kortchinsky
Date: 2020-02-13T13:08:37-08:00
New Revision: ef7488ef205ceb018af463b82386f5ee6a365445

URL: https://github.com/llvm/llvm-project/commit/ef7488ef205ceb018af463b82386f5ee6a365445
DIFF: https://github.com/llvm/llvm-project/commit/ef7488ef205ceb018af463b82386f5ee6a365445.diff

LOG: [GWP-ASan] Silence gcc error

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

Reviewers: eugenis, hctim, morehouse

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D74578

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
index 45b19397b1a3..0e6059896702 100644
--- a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
+++ b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
@@ -84,6 +84,7 @@ size_t rightAlignedAllocationSize(size_t RealAllocationSize,
   case AlignmentStrategy::DEFAULT:
     __builtin_unreachable();
   }
+  __builtin_unreachable();
 }
 
 } // namespace gwp_asan


        


More information about the llvm-commits mailing list