[all-commits] [llvm/llvm-project] db2b1e: [Utils] Fix a warning in DialectConversion.cpp

kazutakahirata via All-commits all-commits at lists.llvm.org
Tue Oct 26 21:01:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db2b1e96f026f98a1f518fdac78c3321922f13e2
      https://github.com/llvm/llvm-project/commit/db2b1e96f026f98a1f518fdac78c3321922f13e2
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [Utils] Fix a warning in DialectConversion.cpp

This patch fixes:

  mlir/lib/Transforms/Utils/DialectConversion.cpp:2775:5: error:
  default label in switch which covers all enumeration values
  [-Werror,-Wcovered-switch-default]

by removing the default case.  This way, the compiler should issue a
warning in the future when somebody adds a new enum value without a
corresponding case in the switch statement.




More information about the All-commits mailing list