Use LLVMContext to generate metadata constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-07-02 17:20:28 +00:00
parent 093811593e
commit e951bdff0d

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