[all-commits] [llvm/llvm-project] ded364: [MLIR][NFC] Fix a checked after used case in Resha...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Thu Jan 26 09:21:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ded3644a3f8ef5c34a956267004bdd6e936bae18
      https://github.com/llvm/llvm-project/commit/ded3644a3f8ef5c34a956267004bdd6e936bae18
  Author: Shivam Gupta <shivam98.tkg at gmail.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp

  Log Message:
  -----------
  [MLIR][NFC] Fix a checked after used case in ReshapeOpsUtils.cpp

Found by PVS-Studio - https://pvs-studio.com/en/blog/posts/cpp/1003/, N18.
The value of the 'sourceDim' index is checked after it was used.

Reviewed By: zero9178

Differential Revision: https://reviews.llvm.org/D142312




More information about the All-commits mailing list