[Mlir-commits] [mlir] 76c4a6e - [MLIR][OpenMP] NFC: Remove unused variable

Kiran Chandramohan llvmlistbot at llvm.org
Fri Nov 24 08:22:13 PST 2023


Author: Kiran Chandramohan
Date: 2023-11-24T16:22:00Z
New Revision: 76c4a6e310f68d6b462a7c98f6b10067277e53fd

URL: https://github.com/llvm/llvm-project/commit/76c4a6e310f68d6b462a7c98f6b10067277e53fd
DIFF: https://github.com/llvm/llvm-project/commit/76c4a6e310f68d6b462a7c98f6b10067277e53fd.diff

LOG: [MLIR][OpenMP] NFC: Remove unused variable

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 de5404be72ee5e1..48a78eddfbf97d3 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -2177,7 +2177,6 @@ createDeviceArgumentAccessor(MapInfoData &mapData, llvm::Argument &arg,
 
   mlir::omp::VariableCaptureKind capture =
       mlir::omp::VariableCaptureKind::ByRef;
-  llvm::Type *inputType = input->getType();
 
   // Find the associated MapInfoData entry for the current input
   for (size_t i = 0; i < mapData.MapClause.size(); ++i)
@@ -2188,7 +2187,6 @@ createDeviceArgumentAccessor(MapInfoData &mapData, llvm::Argument &arg,
             mlir::omp::VariableCaptureKind::ByRef);
       }
 
-      inputType = mapData.BaseType[i];
       break;
     }
 


        


More information about the Mlir-commits mailing list