[all-commits] [llvm/llvm-project] c95049: [MustExecute] Silence clang warning about unused c...

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Oct 31 01:45:13 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c9504954052a7630a6e760006297b5fc73a03e4a
      https://github.com/llvm/llvm-project/commit/c9504954052a7630a6e760006297b5fc73a03e4a
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M llvm/lib/Analysis/MustExecute.cpp

  Log Message:
  -----------
  [MustExecute] Silence clang warning about unused captured 'this'

New code introduced in fe799c97fa caused clang to complain with

../lib/Analysis/MustExecute.cpp:360:34: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
  GetterTy<LoopInfo> LIGetter = [this](const Function &F) {
                                 ^~~~
../lib/Analysis/MustExecute.cpp:365:44: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
  GetterTy<PostDominatorTree> PDTGetter = [this](const Function &F) {
                                           ^~~~
2 errors generated.




More information about the All-commits mailing list