[all-commits] [llvm/llvm-project] 2c61f9: [CVP] Fix use after scope

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 8 07:54:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c61f9cab51b4e358e4c86343cbcfa6ffa8504a2
      https://github.com/llvm/llvm-project/commit/2c61f9cab51b4e358e4c86343cbcfa6ffa8504a2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp

  Log Message:
  -----------
  [CVP] Fix use after scope

Store the result of ConstantRange::sdiv() in a variable, as
getSingleElement() will return a pointer to the APInt it contains.




More information about the All-commits mailing list