summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/SmallPtrSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h
index 9f975af07c5..27cc5535c1d 100644
--- a/llvm/include/llvm/ADT/SmallPtrSet.h
+++ b/llvm/include/llvm/ADT/SmallPtrSet.h
@@ -69,7 +69,7 @@ public:
}
~SmallPtrSetImpl() {
if (!isSmall())
- delete[] CurArray;
+ free(CurArray);
}
bool empty() const { return size() == 0; }
OpenPOWER on IntegriCloud