commit | 341480700f382e8f453ccc77bcd42b7b67cb2e46 | [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 | 70368b6c6bd8cae442426ea9c2eaace6163e1a75 [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; }