[all-commits] [llvm/llvm-project] 1c2159: Use the generic form when printing from the python...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Dec 3 10:50:09 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c2159494d0731d3ecf4c02651f8b14ab9eb0338
      https://github.com/llvm/llvm-project/commit/1c2159494d0731d3ecf4c02651f8b14ab9eb0338
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/Bindings/Python/ir_operation.py

  Log Message:
  -----------
  Use the generic form when printing from the python bindings and the verifier fails

This reduces the chances of segfault. While it is a good practice to ensure
robust custom printers, it is unfortunately common to have them crash on
invalid input.

Reviewed By: stellaraccident

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




More information about the All-commits mailing list