[Mlir-commits] [mlir] 2d63354 - Apply clang-tidy fixes for llvm-qualified-auto in OpenMPToLLVMIRTranslation.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Apr 19 10:21:15 PDT 2022


Author: Mehdi Amini
Date: 2022-04-19T17:20:57Z
New Revision: 2d6335421fb04d0c7470ae2a49f1c94c21c272ed

URL: https://github.com/llvm/llvm-project/commit/2d6335421fb04d0c7470ae2a49f1c94c21c272ed
DIFF: https://github.com/llvm/llvm-project/commit/2d6335421fb04d0c7470ae2a49f1c94c21c272ed.diff

LOG: Apply clang-tidy fixes for llvm-qualified-auto in OpenMPToLLVMIRTranslation.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index 9ecff939415cd..7400b5df2628c 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -1271,7 +1271,7 @@ convertOmpThreadprivate(Operation &opInst, llvm::IRBuilderBase &builder,
   auto threadprivateOp = cast<omp::ThreadprivateOp>(opInst);
 
   Value symAddr = threadprivateOp.sym_addr();
-  auto symOp = symAddr.getDefiningOp();
+  auto *symOp = symAddr.getDefiningOp();
   if (!isa<LLVM::AddressOfOp>(symOp))
     return opInst.emitError("Addressing symbol not found");
   LLVM::AddressOfOp addressOfOp = dyn_cast<LLVM::AddressOfOp>(symOp);


        


More information about the Mlir-commits mailing list