mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Specify namespace for realloc
llvm-svn: 325226
This commit is contained in:
parent
5359575468
commit
0f79884a7d
@ -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…
Reference in New Issue
Block a user