AsmParser: Simplify ParseMDTuple(), NFC

llvm-svn: 225708
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-12 22:23:04 +00:00
parent 00dbc2a7d3
commit dbcff30bd1
1 changed files with 1 additions and 4 deletions

View File

@ -2908,10 +2908,7 @@ bool LLParser::ParseMDTuple(MDNode *&MD, bool IsDistinct) {
if (ParseMDNodeVector(Elts))
return true;
if (IsDistinct)
MD = MDNode::getDistinct(Context, Elts);
else
MD = MDNode::get(Context, Elts);
MD = (IsDistinct ? MDNode::getDistinct : MDNode::get)(Context, Elts);
return false;
}