summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
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
commit0f23237b0cfa7b94bbe3a32bf8ee3b03d7b10690 (patch)
tree8c064d5631a97f01ee18a9170d32d5c098fdd001 /llvm/lib/Support/APInt.cpp
parentc8f9da50ecb4e7a855a57bcd2bb8506396fc322c (diff)
downloadbcm5719-llvm-0f23237b0cfa7b94bbe3a32bf8ee3b03d7b10690.tar.gz
bcm5719-llvm-0f23237b0cfa7b94bbe3a32bf8ee3b03d7b10690.zip
It's not necessary to check if a value is null before delete[].
llvm-svn: 55053
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 80747fd12a9..3dcf84057bb 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -106,7 +106,7 @@ APInt::APInt(const APInt& that)
}
APInt::~APInt() {
- if (!isSingleWord() && pVal)
+ if (!isSingleWord())
delete [] pVal;
}
OpenPOWER on IntegriCloud