It's not necessary to check if a value is null before delete[].

llvm-svn: 55053
This commit is contained in:
Dan Gohman 2008-08-20 14:55:37 +00:00
parent c8f9da50ec
commit 0f23237b0c
1 changed files with 1 additions and 1 deletions

View File

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