mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
Specify namespace for realloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca451d02e4
commit
9d4478cdf2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user