diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index ec1b99d023a..36644740324 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -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";