[compiler-rt] r191189 - [ASan] Fix a compile-time warning
Timur Iskhodzhanov
timurrrr at google.com
Mon Sep 23 04:19:44 PDT 2013
Author: timurrrr
Date: Mon Sep 23 06:19:43 2013
New Revision: 191189
URL: http://llvm.org/viewvc/llvm-project?rev=191189&view=rev
Log:
[ASan] Fix a compile-time warning
Modified:
compiler-rt/trunk/lib/asan/asan_dll_thunk.cc
compiler-rt/trunk/lib/asan/asan_win.cc
Modified: compiler-rt/trunk/lib/asan/asan_dll_thunk.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_dll_thunk.cc?rev=191189&r1=191188&r2=191189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_dll_thunk.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_dll_thunk.cc Mon Sep 23 06:19:43 2013
@@ -128,7 +128,7 @@ extern "C" {
static fntype fn = (fntype)getRealProcAddressOrDie("__asan_init_v3");
fn();
__asan_option_detect_stack_use_after_return =
- (bool)__asan_should_detect_stack_use_after_return();
+ (__asan_should_detect_stack_use_after_return() != 0);
}
}
Modified: compiler-rt/trunk/lib/asan/asan_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win.cc?rev=191189&r1=191188&r2=191189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win.cc Mon Sep 23 06:19:43 2013
@@ -27,7 +27,7 @@
extern "C" {
SANITIZER_INTERFACE_ATTRIBUTE
- bool __asan_should_detect_stack_use_after_return() {
+ int __asan_should_detect_stack_use_after_return() {
__asan_init();
return __asan_option_detect_stack_use_after_return;
}
More information about the llvm-commits
mailing list