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 | 50770c767a1d15294e5a18f3cb8703ff38a1c3f5 (patch) | |
| tree | 1b6e4243bdd69ad714098482eb39aeed11c70bb4 /lib/Bitcode | |
| parent | 636e2a5cd33302fc6e9696e663e0dfe1f49a2d45 (diff) | |
| download | external_llvm-50770c767a1d15294e5a18f3cb8703ff38a1c3f5.zip external_llvm-50770c767a1d15294e5a18f3cb8703ff38a1c3f5.tar.gz external_llvm-50770c767a1d15294e5a18f3cb8703ff38a1c3f5.tar.bz2 | |
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
Diffstat (limited to 'lib/Bitcode')
| -rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp index 15f8f6c..2f02262 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/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, |
