[llvm-commits] [llvm] r55053 - /llvm/trunk/lib/Support/APInt.cpp
Dan Gohman
gohman at apple.com
Wed Aug 20 07:55:44 PDT 2008
Author: djg
Date: Wed Aug 20 09:55:37 2008
New Revision: 55053
URL: http://llvm.org/viewvc/llvm-project?rev=55053&view=rev
Log:
It's not necessary to check if a value is null before delete[].
Modified:
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=55053&r1=55052&r2=55053&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Wed Aug 20 09:55:37 2008
@@ -106,7 +106,7 @@
}
APInt::~APInt() {
- if (!isSingleWord() && pVal)
+ if (!isSingleWord())
delete [] pVal;
}
More information about the llvm-commits
mailing list