From 82240e07ebdc4c0f492e31a1e93d228d06120f8e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 16 Apr 2021 18:21:13 +0100 Subject: [PATCH] [TableGen] CodeGenDAGPatterns - (style) remove if-else chain when if block always returns. NFCI. --- llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index ce6e090ee584..ef130b46b034 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1252,7 +1252,7 @@ StringRef TreePredicateFn::getImmType() const { StringRef TreePredicateFn::getImmTypeIdentifier() const { if (immCodeUsesAPInt()) return "APInt"; - else if (immCodeUsesAPFloat()) + if (immCodeUsesAPFloat()) return "APFloat"; return "I64"; }