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

llvm-svn: 52960
This commit is contained in:
Owen Anderson 2008-07-01 15:56:31 +00:00
parent 2a40249b65
commit 9e75cb2e7a
1 changed files with 1 additions and 1 deletions

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";