From 5b718e3e4d0512c5099a079b1ad59de1cde21bab Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Jan 2010 02:04:20 +0000 Subject: [PATCH] no need to check for null git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94648 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 0cb49c86c7e..af738c784c0 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -220,7 +220,7 @@ namespace { DominanceFrontier &df, AliasSetTracker *ast) : Allocas(A), DT(dt), DF(df), DIF(0), AST(ast) {} ~PromoteMem2Reg() { - if (DIF) delete DIF; + delete DIF; } void run();