diff options
author | Xinliang David Li <davidxl@google.com> | 2016-02-08 18:27:04 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-02-08 18:27:04 +0000 |
commit | d5bc2c3dcf1f25757c5874babd456343178af660 (patch) | |
tree | a6f55b0aa7e24d372d3f801f9dc2028253ad0891 /lib/profile | |
parent | 699a190a2d0e7b8d5aaac59efd2ec2ad512a729f (diff) |
Fix windows build bot failure
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile')
-rw-r--r-- | lib/profile/InstrProfilingPlatformOther.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/profile/InstrProfilingPlatformOther.c b/lib/profile/InstrProfilingPlatformOther.c index 746fb4dfb..24ef5bb6b 100644 --- a/lib/profile/InstrProfilingPlatformOther.c +++ b/lib/profile/InstrProfilingPlatformOther.c @@ -64,7 +64,8 @@ void __llvm_profile_register_names_function(void *NamesStart, return; } NamesFirst = (const char *)getMinAddr(NamesFirst, NamesStart); - NamesLast = (const char *)getMaxAddr(NamesLast, NamesStart + NamesSize); + NamesLast = + (const char *)getMaxAddr(NamesLast, (const char *)NamesStart + NamesSize); } COMPILER_RT_VISIBILITY |