aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-09-29 20:30:57 +0000
committerDevang Patel <dpatel@apple.com>2009-09-29 20:30:57 +0000
commit58a230a4917592f5c529cb40e75bfc3e1c681b69 (patch)
treeb2f31e6fba7970c32de4cfccd755ed35a1188b6b /lib/Bitcode
parenta9a9c95f6789946d5df34185725fc28cebad8b16 (diff)
downloadexternal_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.zip
external_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.tar.gz
external_llvm-58a230a4917592f5c529cb40e75bfc3e1c681b69.tar.bz2
Only one custom meadata of each kind can be attached with an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index f5ddd3f..fe0366f 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1582,7 +1582,7 @@ bool BitcodeReader::ParseMetadataAttachment() {
for (unsigned i = 1; i != RecordLength; i = i+2) {
unsigned Kind = Record[i];
Value *Node = MDValueList.getValueFwdRef(Record[i+1]);
- TheMetadata.setMD(Kind, cast<MDNode>(Node), Inst);
+ TheMetadata.addMD(Kind, cast<MDNode>(Node), Inst);
}
break;
}