OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7096395
)
Add new value for given index in MDValuePtrs.
author
Devang Patel
<dpatel@apple.com>
Thu, 3 Sep 2009 01:38:02 +0000
(
01:38
+0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 3 Sep 2009 01:38:02 +0000
(
01:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80867
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index
e0b5fd9
..
9ed75ab
100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-332,6
+332,9
@@
void BitcodeReaderMDValueList::AssignValue(Value *V, unsigned Idx) {
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) {