diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-25 17:11:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-25 17:11:16 +0000 |
commit | 22161da9ff153453eead2877bfaf68b8770fdcb7 (patch) | |
tree | 93c29c450048962edbf333e9e0fbf911f8fe14fc /llvm/lib/Bitcode | |
parent | ea7363732aa4f9504fc61570c832c9507e0cdf87 (diff) | |
download | bcm5719-llvm-22161da9ff153453eead2877bfaf68b8770fdcb7.tar.gz bcm5719-llvm-22161da9ff153453eead2877bfaf68b8770fdcb7.zip |
Clear FunctionLocalMDs in purgeFunction along with the rest of the
function-specific state.
llvm-svn: 112058
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 15f8f6cdb0d..2f02262c36a 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -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, |