[llvm-commits] [llvm] r171150 - /llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h

Alexey Samsonov samsonov at google.com
Thu Dec 27 00:40:37 PST 2012


Author: samsonov
Date: Thu Dec 27 02:40:37 2012
New Revision: 171150

URL: http://llvm.org/viewvc/llvm-project?rev=171150&view=rev
Log:
Fix new[]/delete mismatch in FullDependence spotted by AddressSanitizer

Modified:
    llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h

Modified: llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h?rev=171150&r1=171149&r2=171150&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h Thu Dec 27 02:40:37 2012
@@ -188,7 +188,7 @@
                    bool LoopIndependent,
                    unsigned Levels);
     ~FullDependence() {
-      delete DV;
+      delete[] DV;
     }
 
     /// isLoopIndependent - Returns true if this is a loop-independent





More information about the llvm-commits mailing list