summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-03-09 21:45:37 +0000
committerXinliang David Li <davidxl@google.com>2016-03-09 21:45:37 +0000
commit5f58c27d790182276cc32a511903a7d278675daa (patch)
treecae994cf39b95f51d074d384a7a8c12bd1b3a19d
parentef1e62033b2a6c3dd25b7dbcf092bd89b039889b (diff)
downloadbcm5719-llvm-5f58c27d790182276cc32a511903a7d278675daa.tar.gz
bcm5719-llvm-5f58c27d790182276cc32a511903a7d278675daa.zip
Fix test failure on darwin-i386
llvm-svn: 263065
-rw-r--r--compiler-rt/lib/profile/InstrProfilingMerge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingMerge.c b/compiler-rt/lib/profile/InstrProfilingMerge.c
index 17cffc7523f..efe094be925 100644
--- a/compiler-rt/lib/profile/InstrProfilingMerge.c
+++ b/compiler-rt/lib/profile/InstrProfilingMerge.c
@@ -35,7 +35,8 @@ int __llvm_profile_check_compatibility(const char *ProfileData,
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() -
OpenPOWER on IntegriCloud