[all-commits] [llvm/llvm-project] 14de3d: [mlir][llvm] Don't return a dangling reference in ...

definelicht via All-commits all-commits at lists.llvm.org
Tue Oct 25 06:06:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14de3d5c634bfacb24e16ebe14dc3b608fb0be9a
      https://github.com/llvm/llvm-project/commit/14de3d5c634bfacb24e16ebe14dc3b608fb0be9a
  Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
  Date:   2022-10-25 (Tue, 25 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

  Log Message:
  -----------
  [mlir][llvm] Don't return a dangling reference in getCallableResults().

Use the `getReturnTypes()` API (which returns an `ArrayRef<Type>`)
rather than the `getReturnType()` API (which returns a `Type`) to avoid
returning a dangling reference in `LLVMFuncOp::getCallableResults()`.

Reviewed By: ftynse

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




More information about the All-commits mailing list