From 9460ae45a60a0fb610d369e8fad5e4e7e2e38c93 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 12 Jan 2015 22:23:04 +0000 Subject: [PATCH] AsmParser: Simplify ParseMDTuple(), NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225708 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/LLParser.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index aac8022a246..5090cfb8a50 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/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; }