UseListShuffleVector::~UseListShuffleVector(): Fix inappropriate delete. It should...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 29 Jul 2014 09:54:35 +0000 (09:54 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 29 Jul 2014 09:54:35 +0000 (09:54 +0000)
llvm-svn: 214174

llvm/include/llvm/IR/UseListOrder.h

index a0eb0a6..128793b 100644 (file)
@@ -54,7 +54,7 @@ public:
   }
   ~UseListShuffleVector() {
     if (!isSmall())
-      delete Storage.Ptr;
+      delete[] Storage.Ptr;
   }
 
   typedef unsigned *iterator;