mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
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
This commit is contained in:
@@ -445,7 +445,6 @@ void ValueEnumerator::incorporateFunction(const Function &F) {
|
|||||||
|
|
||||||
FirstInstID = Values.size();
|
FirstInstID = Values.size();
|
||||||
|
|
||||||
FunctionLocalMDs.clear();
|
|
||||||
SmallVector<MDNode *, 8> FnLocalMDVector;
|
SmallVector<MDNode *, 8> FnLocalMDVector;
|
||||||
// Add all of the instructions.
|
// Add all of the instructions.
|
||||||
for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
||||||
@@ -488,6 +487,7 @@ void ValueEnumerator::purgeFunction() {
|
|||||||
Values.resize(NumModuleValues);
|
Values.resize(NumModuleValues);
|
||||||
MDValues.resize(NumModuleMDValues);
|
MDValues.resize(NumModuleMDValues);
|
||||||
BasicBlocks.clear();
|
BasicBlocks.clear();
|
||||||
|
FunctionLocalMDs.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,
|
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,
|
||||||
|
Reference in New Issue
Block a user