Fix windows build bot failure

llvm-svn: 260120
This commit is contained in:
Xinliang David Li 2016-02-08 18:27:04 +00:00
parent 5b7e2e2fa7
commit 73fe6ce118
1 changed files with 2 additions and 1 deletions

View File

@ -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