[all-commits] [llvm/llvm-project] ef7417: [mlir] Fix -Wunused-but-set-variable in ModuleTran...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Mon Feb 26 18:39:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef7417fbc597eab1adbad4abc6ecdb2e62319513
      https://github.com/llvm/llvm-project/commit/ef7417fbc597eab1adbad4abc6ecdb2e62319513
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp

  Log Message:
  -----------
  [mlir] Fix -Wunused-but-set-variable in ModuleTranslation.cpp (NFC)

mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1050:11:
error: variable 'numConstantsHit' set but not used [-Werror,-Wunused-but-set-variable]
      int numConstantsHit = 0;
          ^
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp:1051:11:
error: variable 'numConstantsErased' set but not used [-Werror,-Wunused-but-set-variable]
      int numConstantsErased = 0;
          ^
2 errors generated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list