mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 05:31:43 +00:00
Only one custom meadata of each kind can be attached with an instruction.
llvm-svn: 83105
This commit is contained in:
1 parent
3a36ab08b7
commit
5bf7a49fd7
5 files changed
+25
-15
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user