unique_ptrify FullDependenceAnalysis::DV
[oota-llvm.git] / include / llvm / Analysis / DependenceAnalysis.h
index e01aa549099de35afc4848326ece7e5daa2ff23e..9169b7028b782efb9fff4ab8eabcca5d5f20a616 100644 (file)
@@ -221,9 +221,6 @@ namespace llvm {
                    Instruction *Dst,
                    bool LoopIndependent,
                    unsigned Levels);
-    ~FullDependence() {
-      delete[] DV;
-    }
 
     /// isLoopIndependent - Returns true if this is a loop-independent
     /// dependence.
@@ -270,7 +267,7 @@ namespace llvm {
     unsigned short Levels;
     bool LoopIndependent;
     bool Consistent; // Init to true, then refine.
-    DVEntry *DV;
+    std::unique_ptr<DVEntry[]> DV;
     friend class DependenceAnalysis;
   };