aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 17:20:28 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 17:20:28 +0000
commite2d7de8f8ca0574662d036761eb272658fc318e9 (patch)
tree056e707f62e6151c4e8b22c89dc27af089b4f7b0 /lib/AsmParser
parent82f496494120bdf8903d9606041bb04c234828f9 (diff)
downloadexternal_llvm-e2d7de8f8ca0574662d036761eb272658fc318e9.zip
external_llvm-e2d7de8f8ca0574662d036761eb272658fc318e9.tar.gz
external_llvm-e2d7de8f8ca0574662d036761eb272658fc318e9.tar.bz2
Use LLVMContext to generate metadata constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-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 6d61f54..2f5cd62 100644
--- a/lib/AsmParser/LLParser.cpp
+++ b/lib/AsmParser/LLParser.cpp
@@ -1623,7 +1623,7 @@ bool LLParser::ParseValID(ValID &ID) {
ParseToken(lltok::rbrace, "expected end of metadata node"))
return true;
- ID.ConstantVal = MDNode::get(Elts.data(), Elts.size());
+ ID.ConstantVal = Context.getMDNode(Elts.data(), Elts.size());
return false;
}