[Mlir-commits] [mlir] 97217d1 - [mlir] Fix '-Wunused' warning. NFC

Michael Liao llvmlistbot at llvm.org
Mon Oct 16 07:47:14 PDT 2023


Author: Michael Liao
Date: 2023-10-16T10:47:01-04:00
New Revision: 97217d188469c78d69b65059cabc123e847a2c66

URL: https://github.com/llvm/llvm-project/commit/97217d188469c78d69b65059cabc123e847a2c66
DIFF: https://github.com/llvm/llvm-project/commit/97217d188469c78d69b65059cabc123e847a2c66.diff

LOG: [mlir] Fix '-Wunused' warning. NFC

Added: 
    

Modified: 
    mlir/lib/Target/LLVMIR/ModuleImport.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/LLVMIR/ModuleImport.cpp b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
index d070e42ac0c7db7..e3562049cd81c76 100644
--- a/mlir/lib/Target/LLVMIR/ModuleImport.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
@@ -991,7 +991,7 @@ FailureOr<Value> ModuleImport::convertConstant(llvm::Constant *constant) {
   }
 
   // Convert none token constants.
-  if (auto *noneToken = dyn_cast<llvm::ConstantTokenNone>(constant)) {
+  if (isa<llvm::ConstantTokenNone>(constant)) {
     return builder.create<NoneTokenOp>(loc).getResult();
   }
 


        


More information about the Mlir-commits mailing list