AsmParser: Simplify ParseMDTuple(), NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-12 22:23:04 +00:00
parent 93eb099f24
commit 9460ae45a6

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