[all-commits] [llvm/llvm-project] f529c0: Fix unused variable warning. NFCI.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jun 11 05:49:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f529c0a8a149ce6d027400a12a1637eda19e03b5
      https://github.com/llvm/llvm-project/commit/f529c0a8a149ce6d027400a12a1637eda19e03b5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M clang/unittests/StaticAnalyzer/ParamRegionTest.cpp

  Log Message:
  -----------
  Fix unused variable warning. NFCI.

We're only using the D2 iteration value inside the assert (the only component of the loop) - move the entire loop inside the assert by using llvm::all_of.




More information about the All-commits mailing list