[llvm-commits] [llvm] r112058 - /llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Dan Gohman
gohman at apple.com
Wed Aug 25 10:11:16 PDT 2010
Author: djg
Date: Wed Aug 25 12:11:16 2010
New Revision: 112058
URL: http://llvm.org/viewvc/llvm-project?rev=112058&view=rev
Log:
Clear FunctionLocalMDs in purgeFunction along with the rest of the
function-specific state.
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=112058&r1=112057&r2=112058&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Wed Aug 25 12:11:16 2010
@@ -445,7 +445,6 @@
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 @@
Values.resize(NumModuleValues);
MDValues.resize(NumModuleMDValues);
BasicBlocks.clear();
+ FunctionLocalMDs.clear();
}
static void IncorporateFunctionInfoGlobalBBIDs(const Function *F,
More information about the llvm-commits
mailing list