[compiler-rt] r197665 - Fix -Werror compilation.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Dec 19 00:57:25 PST 2013


Author: eugenis
Date: Thu Dec 19 02:57:24 2013
New Revision: 197665

URL: http://llvm.org/viewvc/llvm-project?rev=197665&view=rev
Log:
Fix -Werror compilation.

It was broken in r197601.

Modified:
    compiler-rt/trunk/lib/dfsan/dfsan_custom.cc

Modified: compiler-rt/trunk/lib/dfsan/dfsan_custom.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/dfsan/dfsan_custom.cc?rev=197665&r1=197664&r2=197665&view=diff
==============================================================================
--- compiler-rt/trunk/lib/dfsan/dfsan_custom.cc (original)
+++ compiler-rt/trunk/lib/dfsan/dfsan_custom.cc Thu Dec 19 02:57:24 2013
@@ -796,7 +796,7 @@ __dfsw_socketpair(int domain, int type,
   int ret = socketpair(domain, type, protocol, sv);
   *ret_label = 0;
   if (ret == 0) {
-    dfsan_set_label(0, sv, sizeof(sv));
+    dfsan_set_label(0, sv, sizeof(*sv) * 2);
   }
   return ret;
 }





More information about the llvm-commits mailing list