From ce719a0def0054c03a9787ddb5a1e0235bbea103 Mon Sep 17 00:00:00 2001 From: Serge Pavlov Date: Thu, 15 Feb 2018 09:35:36 +0000 Subject: [PATCH] Specify namespace for realloc llvm-svn: 325226 --- llvm/lib/Support/Unix/Threading.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc index 2337b2c76cc7..dc4912aceb38 100644 --- a/llvm/lib/Support/Unix/Threading.inc +++ b/llvm/lib/Support/Unix/Threading.inc @@ -176,7 +176,7 @@ void llvm::get_thread_name(SmallVectorImpl &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;