forked from OSchip/llvm-project
Use LLVMContext to generate metadata constants.
llvm-svn: 74708
This commit is contained in:
parent
fea7ae88c9
commit
29ec3e0e50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue