aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/StringPool.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/StringPool.h')
-rw-r--r--include/llvm/Support/StringPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/StringPool.h b/include/llvm/Support/StringPool.h
index 1f3d8a0f0a..8661f60e2e 100644
--- a/include/llvm/Support/StringPool.h
+++ b/include/llvm/Support/StringPool.h
@@ -110,7 +110,7 @@ namespace llvm {
return;
if (--S->getValue().Refcount == 0) {
S->getValue().Pool->InternTable.remove(S);
- delete S;
+ S->Destroy();
}
S = 0;
}