summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:23:04 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:23:04 +0000
commitdbcff30bd18a8ec91bdfe4d40c951aebec353f2f (patch)
treece74f2ebfacc5c173b212042d8ce4ff06899bf4c /llvm/lib/AsmParser/LLParser.cpp
parent00dbc2a7d3eaf1237003a17029d3723d79902487 (diff)
downloadbcm5719-llvm-dbcff30bd18a8ec91bdfe4d40c951aebec353f2f.tar.gz
bcm5719-llvm-dbcff30bd18a8ec91bdfe4d40c951aebec353f2f.zip
AsmParser: Simplify ParseMDTuple(), NFC
llvm-svn: 225708
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index aac8022a246..5090cfb8a50 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;
}
OpenPOWER on IntegriCloud