1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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 a5921219e5
commit 9a43334166

View File

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