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:
parent
a5921219e5
commit
9a43334166
@ -106,7 +106,7 @@ APInt::APInt(const APInt& that)
|
||||
}
|
||||
|
||||
APInt::~APInt() {
|
||||
if (!isSingleWord() && pVal)
|
||||
if (!isSingleWord())
|
||||
delete [] pVal;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user