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
commite951bdff0d1fbdb481570969b59c57716d79761c (patch)
tree056e707f62e6151c4e8b22c89dc27af089b4f7b0 /lib/AsmParser
parent093811593ef84a6a4180cd38af202fae0d30160f (diff)
downloadexternal_llvm-e951bdff0d1fbdb481570969b59c57716d79761c.zip
external_llvm-e951bdff0d1fbdb481570969b59c57716d79761c.tar.gz
external_llvm-e951bdff0d1fbdb481570969b59c57716d79761c.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;
}