Clear FunctionLocalMDs in purgeFunction along with the rest of the

function-specific state.

llvm-svn: 112058
This commit is contained in:
Dan Gohman 2010-08-25 17:11:16 +00:00
parent ea7363732a
commit 22161da9ff
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,6 @@ void ValueEnumerator::incorporateFunction(const Function &F) {
FirstInstID = Values.size();
FunctionLocalMDs.clear();
SmallVector<MDNode *, 8> FnLocalMDVector;
// Add all of the instructions.
for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
@ -488,6 +487,7 @@ void ValueEnumerator::purgeFunction() {
Values.resize(NumModuleValues);
MDValues.resize(NumModuleMDValues);
BasicBlocks.clear();
FunctionLocalMDs.clear();
}
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,