no need to check for null
authorChris Lattner <sabre@nondot.org>
Wed, 27 Jan 2010 02:04:20 +0000 (02:04 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Jan 2010 02:04:20 +0000 (02:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/PromoteMemoryToRegister.cpp

index 0cb49c86c7e3dcbc46a013d315af9cd9bf2b89eb..af738c784c04231a7f35d9853a277b24b05e3132 100644 (file)
@@ -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();