llvm.org GIT mirror llvm / eace52f
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 Dan Gohman 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
105105 }
106106
107107 APInt::~APInt() {
108 if (!isSingleWord() && pVal)
108 if (!isSingleWord())
109109 delete [] pVal;
110110 }
111111