[compiler-rt] r263065 - Fix test failure on darwin-i386

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 13:45:37 PST 2016


Author: davidxl
Date: Wed Mar  9 15:45:37 2016
New Revision: 263065

URL: http://llvm.org/viewvc/llvm-project?rev=263065&view=rev
Log:
Fix test failure on darwin-i386

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingMerge.c

Modified: compiler-rt/trunk/lib/profile/InstrProfilingMerge.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingMerge.c?rev=263065&r1=263064&r2=263065&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingMerge.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingMerge.c Wed Mar  9 15:45:37 2016
@@ -35,7 +35,8 @@ int __llvm_profile_check_compatibility(c
   if (Header->Magic != __llvm_profile_get_magic() ||
       Header->Version != __llvm_profile_get_version() ||
       Header->DataSize !=
-          (uint64_t)(__llvm_profile_end_data() - __llvm_profile_begin_data()) ||
+          __llvm_profile_get_data_size(__llvm_profile_begin_data(),
+                                       __llvm_profile_end_data()) ||
       Header->CountersSize != (uint64_t)(__llvm_profile_end_counters() -
                                          __llvm_profile_begin_counters()) ||
       Header->NamesSize != (uint64_t)(__llvm_profile_end_names() -




More information about the llvm-commits mailing list