summaryrefslogtreecommitdiffstats
path: root/openmp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-09-02 19:37:12 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-09-02 19:37:12 +0000
commit788c5d65e870eac222c9c02fad5cbc2e102c9e9e (patch)
tree34c8d3a538756778e9c241f6f439cad7ef4b5833 /openmp
parentfee70ea8c6cb8ebbf24770f6b02c3d982ff95443 (diff)
downloadbcm5719-llvm-788c5d65e870eac222c9c02fad5cbc2e102c9e9e.tar.gz
bcm5719-llvm-788c5d65e870eac222c9c02fad5cbc2e102c9e9e.zip
Replace a bad instance of __kmp_free() with KMP_CPU_FREE_ARRAY() macro.
llvm-svn: 280530
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/src/kmp_affinity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp
index 594d8e45cd1..fe987d82c8b 100644
--- a/openmp/runtime/src/kmp_affinity.cpp
+++ b/openmp/runtime/src/kmp_affinity.cpp
@@ -4141,7 +4141,7 @@ __kmp_aux_affinity_initialize(void)
KMP_ASSERT2(0, "Unexpected affinity setting");
}
- __kmp_free(osId2Mask);
+ KMP_CPU_FREE_ARRAY(osId2Mask, maxIndex+1);
machine_hierarchy.init(address2os, __kmp_avail_proc);
}
#undef KMP_EXIT_AFF_NONE
OpenPOWER on IntegriCloud