aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-20 14:55:37 +0000
committerDan Gohman <gohman@apple.com>2008-08-20 14:55:37 +0000
commiteace52f12db8feff2742ad1e2a330c837ff7f824 (patch)
tree5e835a7376b4b7e66e1834c60f8e00edd9eb011b /lib/Support
parentd8ed2a718460843ca9b0a3e5022fbad5f623648f (diff)
downloadexternal_llvm-eace52f12db8feff2742ad1e2a330c837ff7f824.zip
external_llvm-eace52f12db8feff2742ad1e2a330c837ff7f824.tar.gz
external_llvm-eace52f12db8feff2742ad1e2a330c837ff7f824.tar.bz2
It's not necessary to check if a value is null before delete[].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 80747fd..3dcf840 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -106,7 +106,7 @@ APInt::APInt(const APInt& that)
}
APInt::~APInt() {
- if (!isSingleWord() && pVal)
+ if (!isSingleWord())
delete [] pVal;
}