[llvm-commits] [llvm] r80997 - /llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
Duncan Sands
baldrick at free.fr
Fri Sep 4 04:59:43 PDT 2009
Author: baldrick
Date: Fri Sep 4 06:59:43 2009
New Revision: 80997
URL: http://llvm.org/viewvc/llvm-project?rev=80997&view=rev
Log:
Use delete[] to match new[] (found by valgrind).
Modified:
llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
Modified: llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp?rev=80997&r1=80996&r2=80997&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp Fri Sep 4 06:59:43 2009
@@ -54,7 +54,7 @@
}
ExactHazardRecognizer::~ExactHazardRecognizer() {
- delete Scoreboard;
+ delete [] Scoreboard;
}
void ExactHazardRecognizer::Reset() {
More information about the llvm-commits
mailing list