[all-commits] [llvm/llvm-project] d9b92c: [Coverity] Improper use of negtive value.

Luo, Yuanke via All-commits all-commits at lists.llvm.org
Thu May 4 06:12:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9b92c4d559732e953a7339273f53a89e92d3655
      https://github.com/llvm/llvm-project/commit/d9b92c4d559732e953a7339273f53a89e92d3655
  Author: Luo, Yuanke <yuanke.luo at intel.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [Coverity] Improper use of negtive value.

The `Iteration` value may be -1 which would cause incorrect loop count
when pass the value to buildSqrtNROneConst or buildSqrtNRTwoConst.




More information about the All-commits mailing list