[compiler-rt] r289568 - Fix warning for noreturn function
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 11:01:41 PST 2016
Author: rnk
Date: Tue Dec 13 13:01:41 2016
New Revision: 289568
URL: http://llvm.org/viewvc/llvm-project?rev=289568&view=rev
Log:
Fix warning for noreturn function
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=289568&r1=289567&r2=289568&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Tue Dec 13 13:01:41 2016
@@ -659,6 +659,7 @@ void internal__exit(int exitcode) {
if (::IsDebuggerPresent())
__debugbreak();
TerminateProcess(GetCurrentProcess(), exitcode);
+ __assume(0);
}
uptr internal_ftruncate(fd_t fd, uptr size) {
More information about the llvm-commits
mailing list