diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index aac8022a2466..5090cfb8a508 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -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; }