From: Dan Gohman Date: Wed, 20 Aug 2008 14:55:37 +0000 (+0000) Subject: It's not necessary to check if a value is null before delete[]. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=eace52f12db8feff2742ad1e2a330c837ff7f824;p=oota-llvm.git 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 80747fd12a9..3dcf84057bb 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; }