llvm.org GIT mirror llvm / 848c9ae
Clear FunctionLocalMDs in purgeFunction along with the rest of the function-specific state. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112058 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
444444
445445 FirstInstID = Values.size();
446446
447 FunctionLocalMDs.clear();
448447 SmallVector FnLocalMDVector;
449448 // Add all of the instructions.
450449 for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
487486 Values.resize(NumModuleValues);
488487 MDValues.resize(NumModuleMDValues);
489488 BasicBlocks.clear();
489 FunctionLocalMDs.clear();
490490 }
491491
492492 static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,