[llvm-commits] [compiler-rt] r152747 - /compiler-rt/trunk/lib/asan/asan_rtl.cc
Kostya Serebryany
kcc at google.com
Wed Mar 14 15:48:09 PDT 2012
Author: kcc
Date: Wed Mar 14 17:48:09 2012
New Revision: 152747
URL: http://llvm.org/viewvc/llvm-project?rev=152747&view=rev
Log:
[asan] fix -Wnull-conversion warnings
Modified:
compiler-rt/trunk/lib/asan/asan_rtl.cc
Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=152747&r1=152746&r2=152747&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Wed Mar 14 17:48:09 2012
@@ -244,16 +244,16 @@
static NOINLINE void force_interface_symbols() {
volatile int fake_condition = 0; // prevent dead condition elimination.
if (fake_condition) {
- __asan_report_load1(NULL);
- __asan_report_load2(NULL);
- __asan_report_load4(NULL);
- __asan_report_load8(NULL);
- __asan_report_load16(NULL);
- __asan_report_store1(NULL);
- __asan_report_store2(NULL);
- __asan_report_store4(NULL);
- __asan_report_store8(NULL);
- __asan_report_store16(NULL);
+ __asan_report_load1(0);
+ __asan_report_load2(0);
+ __asan_report_load4(0);
+ __asan_report_load8(0);
+ __asan_report_load16(0);
+ __asan_report_store1(0);
+ __asan_report_store2(0);
+ __asan_report_store4(0);
+ __asan_report_store8(0);
+ __asan_report_store16(0);
__asan_register_global(0, 0, NULL);
__asan_register_globals(NULL, 0);
__asan_unregister_globals(NULL, 0);
More information about the llvm-commits
mailing list