[all-commits] [llvm/llvm-project] df31fd: [mlir] Fix use-after-return in #117513 (#120968)

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Dec 23 06:14:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df31fd8a3648a487aaec31bef059187b0d316d1f
      https://github.com/llvm/llvm-project/commit/df31fd8a3648a487aaec31bef059187b0d316d1f
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-12-23 (Mon, 23 Dec 2024)

  Changed paths:
    M mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h
    M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp

  Log Message:
  -----------
  [mlir] Fix use-after-return in #117513 (#120968)

Fix a use-after-return in #117513. Free-standing lambdas should not be
defined inside of the `LLVMTypeConverter` constructor because they go
out of scope.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list