diff options
-rw-r--r-- | compiler-rt/lib/profile/InstrProfilingPlatformOther.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c index 746fb4dfb06..24ef5bb6bee 100644 --- a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c +++ b/compiler-rt/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 |