Fix some null checks to actually test the part that needs checking.
[oota-llvm.git] / include / llvm / Analysis / LoopPass.h
index 07b9c572ce0baade1cbd80c3cabe3ae7aa156812..4163a09d333cb8b399e9ff8e6fd3d94ec8eaefe8 100644 (file)
@@ -55,8 +55,12 @@ class LoopPass : public Pass {
 
   /// Assign pass manager to manager this pass
   virtual void assignPassManager(PMStack &PMS,
-                                PassManagerType PMT = PMT_LoopPassManager);
+                                 PassManagerType PMT = PMT_LoopPassManager);
 
+  ///  Return what kind of Pass Manager can manage this pass.
+  virtual PassManagerType getPotentialPassManagerType() const {
+    return PMT_LoopPassManager;
+  }
 };
 
 class LPPassManager : public FunctionPass, public PMDataManager {