[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 29 09:45:08 PST 2005
Changes in directory llvm/lib/Analysis:
AliasAnalysisEvaluator.cpp updated: 1.25 -> 1.26
---
Log message:
there is no point comparing against null pointer.
---
Diffs of the changes: (+3 -2)
AliasAnalysisEvaluator.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Analysis/AliasAnalysisEvaluator.cpp
diff -u llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.25 llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.26
--- llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:1.25 Sat Mar 26 17:56:33 2005
+++ llvm/lib/Analysis/AliasAnalysisEvaluator.cpp Tue Mar 29 11:44:52 2005
@@ -17,10 +17,11 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Constants.h"
+#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
-#include "llvm/DerivedTypes.h"
#include "llvm/Analysis/Passes.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Assembly/Writer.h"
@@ -115,7 +116,7 @@
isa<Function>(Inst.getOperand(0)))
++OI; // Skip actual functions for direct function calls.
for (; OI != Inst.op_end(); ++OI)
- if (isa<PointerType>((*OI)->getType()))
+ if (isa<PointerType>((*OI)->getType()) && !isa<ConstantPointerNull>(*OI))
Pointers.insert(*OI);
CallSite CS = CallSite::get(&*I);
More information about the llvm-commits
mailing list