[all-commits] [llvm/llvm-project] 6f2943: [MLIR][Standard] Fix use of `dyn_cast_or_null`

frgossen via All-commits all-commits at lists.llvm.org
Tue Jun 16 14:06:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f2943fb1960a698b8fb876fdcc10f4508fd45f6
      https://github.com/llvm/llvm-project/commit/6f2943fb1960a698b8fb876fdcc10f4508fd45f6
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp

  Log Message:
  -----------
  [MLIR][Standard] Fix use of `dyn_cast_or_null`

The value may be a function argument in which case `getDefiningOp` will return a
`nullptr`.

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




More information about the All-commits mailing list