[llvm-commits] [llvm] r80867 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Devang Patel
dpatel at apple.com
Wed Sep 2 18:38:03 PDT 2009
Author: dpatel
Date: Wed Sep 2 20:38:02 2009
New Revision: 80867
URL: http://llvm.org/viewvc/llvm-project?rev=80867&view=rev
Log:
Add new value for given index in MDValuePtrs.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=80867&r1=80866&r2=80867&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Wed Sep 2 20:38:02 2009
@@ -332,6 +332,9 @@
Value *PrevVal = OldV;
OldV->replaceAllUsesWith(V);
delete PrevVal;
+ // Deleting PrevVal sets Idx value in MDValuePtrs to null. Set new
+ // value for Idx.
+ MDValuePtrs[Idx] = V;
}
Value *BitcodeReaderMDValueList::getValueFwdRef(unsigned Idx) {
More information about the llvm-commits
mailing list