Add a DominatorTree argument to isLCSSA so that it doesn't have to
[oota-llvm.git] / lib / Analysis / PointerTracking.cpp
index 8da07e756d4a5e4dfc3bce938da9b1d2469faafb..ce7ac899cd2869dfa5f98eb631c7f2eea240bb6b 100644 (file)
@@ -231,7 +231,7 @@ void PointerTracking::print(raw_ostream &OS, const Module* M) const {
   // this should be safe for the same reason its safe for SCEV.
   PointerTracking &PT = *const_cast<PointerTracking*>(this);
   for (inst_iterator I=inst_begin(*FF), E=inst_end(*FF); I != E; ++I) {
-    if (!isa<PointerType>(I->getType()))
+    if (!I->getType()->isPointerTy())
       continue;
     Value *Base;
     const SCEV *Limit, *Offset;