Use delete[] instead of free on an array created with new[].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-07-01 15:56:31 +00:00
parent d9ad8abc8e
commit b43f7e05ff

View File

@ -526,7 +526,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
<< " unsigned SubregHashTableSize = 1;\n";
}
free(SubregHashTable);
delete [] SubregHashTable;
if (!RegisterAliases.empty())
OS << "\n\n // Register Alias Sets...\n";