commit | eace52f12db8feff2742ad1e2a330c837ff7f824 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Aug 20 14:55:37 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Aug 20 14:55:37 2008 +0000 |
tree | 5e835a7376b4b7e66e1834c60f8e00edd9eb011b | |
parent | d8ed2a718460843ca9b0a3e5022fbad5f623648f [diff] [blame] |
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
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() { - if (!isSingleWord() && pVal) + if (!isSingleWord()) delete [] pVal; }