From eace52f12db8feff2742ad1e2a330c837ff7f824 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Aug 2008 14:55:37 +0000 Subject: 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 --- lib/Support/APInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support') diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 80747fd12a..3dcf84057b 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -106,7 +106,7 @@ APInt::APInt(const APInt& that) } APInt::~APInt() { - if (!isSingleWord() && pVal) + if (!isSingleWord()) delete [] pVal; } -- cgit v1.2.3