summaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/LLParser.cpp
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/AsmParser/LLParser.cpp
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/AsmParser/LLParser.cpp')
-rw-r--r--lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 9e80159..42ce953 100644
--- a/lib/AsmParser/LLParser.cpp
+++ b/lib/AsmParser/LLParser.cpp
@@ -2665,7 +2665,7 @@ bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
MetadataContext &TheMetadata = M->getContext().getMetadata();
for (SmallVector<std::pair<unsigned, MDNode *>, 2>::iterator
MDI = MDsOnInst.begin(), MDE = MDsOnInst.end(); MDI != MDE; ++MDI)
- TheMetadata.setMD(MDI->first, MDI->second, Inst);
+ TheMetadata.addMD(MDI->first, MDI->second, Inst);
MDsOnInst.clear();
BB->getInstList().push_back(Inst);