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
This commit is contained in:
Dan Gohman 2008-08-20 14:55:37 +00:00
parent d8ed2a7184
commit eace52f12d

View File

@ -106,7 +106,7 @@ APInt::APInt(const APInt& that)
}
APInt::~APInt() {
if (!isSingleWord() && pVal)
if (!isSingleWord())
delete [] pVal;
}