Use LLVMContext to generate metadata constants.

llvm-svn: 74708
This commit is contained in:
Owen Anderson 2009-07-02 17:20:28 +00:00
parent fea7ae88c9
commit 29ec3e0e50
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}