[Mlir-commits] [mlir] 118d9eb - Apply clang-tidy fixes for llvm-else-after-return in OpenMPToLLVM.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon May 30 11:44:48 PDT 2022


Author: Mehdi Amini
Date: 2022-05-30T18:44:28Z
New Revision: 118d9ebd521317d6f593fd2b9cea66043336846b

URL: https://github.com/llvm/llvm-project/commit/118d9ebd521317d6f593fd2b9cea66043336846b
DIFF: https://github.com/llvm/llvm-project/commit/118d9ebd521317d6f593fd2b9cea66043336846b.diff

LOG: Apply clang-tidy fixes for llvm-else-after-return in OpenMPToLLVM.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp b/mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
index 3f0964dc1115b..3c8416b75511f 100644
--- a/mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
+++ b/mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
@@ -65,9 +65,8 @@ struct RegionLessOpConversion : public ConvertOpToLLVMPattern<T> {
         // TODO: Support memref type in variable operands
         return rewriter.notifyMatchFailure(curOp,
                                            "memref is not supported yet");
-      } else {
-        convertedOperands.emplace_back(adaptor.getOperands()[idx]);
       }
+      convertedOperands.emplace_back(adaptor.getOperands()[idx]);
     }
     rewriter.replaceOpWithNewOp<T>(curOp, resTypes, convertedOperands,
                                    curOp->getAttrs());


        


More information about the Mlir-commits mailing list