[llvm-commits] [llvm] r94648 - /llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 26 18:04:21 PST 2010
Author: lattner
Date: Tue Jan 26 20:04:20 2010
New Revision: 94648
URL: http://llvm.org/viewvc/llvm-project?rev=94648&view=rev
Log:
no need to check for null
Modified:
llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Modified: llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp?rev=94648&r1=94647&r2=94648&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Tue Jan 26 20:04:20 2010
@@ -220,7 +220,7 @@
DominanceFrontier &df, AliasSetTracker *ast)
: Allocas(A), DT(dt), DF(df), DIF(0), AST(ast) {}
~PromoteMem2Reg() {
- if (DIF) delete DIF;
+ delete DIF;
}
void run();
More information about the llvm-commits
mailing list