mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 23:45:36 +00:00
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:
parent
93eb099f24
commit
9460ae45a6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user