[compiler-rt] r174376 - [asan] Fix Win/Mac build.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Feb 5 07:02:13 PST 2013


Author: eugenis
Date: Tue Feb  5 09:02:12 2013
New Revision: 174376

URL: http://llvm.org/viewvc/llvm-project?rev=174376&view=rev
Log:
[asan] Fix Win/Mac build.

Modified:
    compiler-rt/trunk/lib/asan/asan_allocator.cc

Modified: compiler-rt/trunk/lib/asan/asan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_allocator.cc?rev=174376&r1=174375&r2=174376&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_allocator.cc Tue Feb  5 09:02:12 2013
@@ -389,7 +389,7 @@ class MallocInfo {
     CHECK(m->chunk_state == CHUNK_ALLOCATED ||
           m->chunk_state == CHUNK_AVAILABLE ||
           m->chunk_state == CHUNK_QUARANTINE);
-    lptr offset = 0;
+    sptr offset = 0;
     AsanChunkView m_view(m);
     if (m_view.AddrIsInside(addr, 1, &offset))
       return m;





More information about the llvm-commits mailing list