Changes in directory llvm/include/llvm/ADT:

StringMap.h updated: 1.13 -> 1.14
---
Log message:

use calloc instead of new/memset, it is more efficient


---
Diffs of the changes:  (+1 -1)

 StringMap.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/ADT/StringMap.h
diff -u llvm/include/llvm/ADT/StringMap.h:1.13 
llvm/include/llvm/ADT/StringMap.h:1.14
--- llvm/include/llvm/ADT/StringMap.h:1.13      Tue Apr  3 19:29:37 2007
+++ llvm/include/llvm/ADT/StringMap.h   Tue Apr  3 19:44:30 2007
@@ -279,7 +279,7 @@
       if (I->Item && I->Item != getTombstoneVal())
         static_cast<MapEntryTy*>(I->Item)->Destroy(Allocator);
     }
-    delete [] TheTable;
+    free(TheTable);
   }
 };
   



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to