[llvm-commits] CVS: llvm/include/llvm/ADT/StringMap.h
Chris Lattner
sabre at nondot.org
Tue Apr 3 17:44:53 PDT 2007
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);
}
};
More information about the llvm-commits
mailing list