It's not necessary to check if a value is null before delete[].
llvm-svn: 55053
This commit is contained in:
parent
c8f9da50ec
commit
0f23237b0c
|
@ -106,7 +106,7 @@ APInt::APInt(const APInt& that)
|
||||||
}
|
}
|
||||||
|
|
||||||
APInt::~APInt() {
|
APInt::~APInt() {
|
||||||
if (!isSingleWord() && pVal)
|
if (!isSingleWord())
|
||||||
delete [] pVal;
|
delete [] pVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue