Specify namespace for realloc

llvm-svn: 325226
This commit is contained in:
Serge Pavlov 2018-02-15 09:35:36 +00:00
parent 387d0005e0
commit ce719a0def
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ void llvm::get_thread_name(SmallVectorImpl<char> &Name) {
if (kp == nullptr || (error != 0 && errno == ENOMEM)) {
// Add extra space in case threads are added before next call.
len += sizeof(*kp) + len / 10;
nkp = (struct kinfo_proc *)realloc(kp, len);
nkp = (struct kinfo_proc *)::realloc(kp, len);
if (nkp == nullptr) {
free(kp);
return;