[Mlir-commits] [mlir] [mlir] Simplify Default cases in type switches. NFC. (PR #165767)

Han-Chung Wang llvmlistbot at llvm.org
Thu Oct 30 11:55:09 PDT 2025


================
@@ -420,10 +420,10 @@ DebugTranslation::translateImpl(DIGenericSubrangeAttr attr) {
             .Case([&](LLVM::DILocalVariableAttr local) {
               return translate(local);
             })
-            .Case<>([&](LLVM::DIGlobalVariableAttr global) {
+            .Case([&](LLVM::DIGlobalVariableAttr global) {
----------------
hanhanW wrote:

A further cleanup can be dropping `&` when we don't need it. It is okay to leave it as what it is now for consistency.

https://github.com/llvm/llvm-project/pull/165767


More information about the Mlir-commits mailing list