[all-commits] [llvm/llvm-project] a3ef1b: Fix MLIR crash on 32 bits platforms

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed May 17 21:59:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3ef1b587d7cf88e311d6f17132fa7fc5a6490db
      https://github.com/llvm/llvm-project/commit/a3ef1b587d7cf88e311d6f17132fa7fc5a6490db
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M mlir/lib/IR/Operation.cpp

  Log Message:
  -----------
  Fix MLIR crash on 32 bits platforms

The properties size is compressed as a member of the Operation class
to assume a multiple of 8B is used for the storage. This matched the
natural alignment / padding on 64 bits platforms, however we need some
explicit padding on 32 bits platforms, llvm::TrailingObjects will
compress and misalign.

Fixes #62763




More information about the All-commits mailing list