[Mlir-commits] [mlir] 0ead2bd - [MLIR][LLVM] Suppress unused variable warning. (#85467)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 15 17:18:11 PDT 2024


Author: Bixia Zheng
Date: 2024-03-15T17:18:02-07:00
New Revision: 0ead2bd91bd5df4f1d285038d8ebd2f6a5ec569d

URL: https://github.com/llvm/llvm-project/commit/0ead2bd91bd5df4f1d285038d8ebd2f6a5ec569d
DIFF: https://github.com/llvm/llvm-project/commit/0ead2bd91bd5df4f1d285038d8ebd2f6a5ec569d.diff

LOG: [MLIR][LLVM] Suppress unused variable warning. (#85467)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
index 226fa409bedda6..e7e314f739fa5c 100644
--- a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
@@ -225,6 +225,8 @@ DebugTranslation::translateRecursive(DIRecursiveTypeAttrInterface attr) {
   auto setRecursivePlaceholder = [&](llvm::DIType *placeholder) {
     [[maybe_unused]] auto [iter, inserted] =
         recursiveTypeMap.try_emplace(recursiveId, placeholder);
+    (void)iter;
+    (void)inserted;
     assert(inserted && "illegal reuse of recursive id");
   };
 


        


More information about the Mlir-commits mailing list