mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
d8ed2a7184
commit
eace52f12d
@ -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