[PATCH] D16805: Cast the fifth arg to mremap to void *

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 10:40:36 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL259540: Cast the fifth arg to mremap to void * (authored by samsonov).

Changed prior to commit:
  http://reviews.llvm.org/D16805?vs=46653&id=46675#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16805

Files:
  compiler-rt/trunk/lib/cfi/cfi.cc

Index: compiler-rt/trunk/lib/cfi/cfi.cc
===================================================================
--- compiler-rt/trunk/lib/cfi/cfi.cc
+++ compiler-rt/trunk/lib/cfi/cfi.cc
@@ -155,7 +155,7 @@
   if (main_shadow) {
     // Update.
     void *res = mremap((void *)shadow_, GetShadowSize(), GetShadowSize(),
-                       MREMAP_MAYMOVE | MREMAP_FIXED, main_shadow);
+                       MREMAP_MAYMOVE | MREMAP_FIXED, (void *)main_shadow);
     CHECK(res != MAP_FAILED);
   } else {
     // Initial setup.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16805.46675.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160202/8556c06a/attachment.bin>


More information about the llvm-commits mailing list