)]}'
{
  "commit": "7aa7be5fd3f237f3ef885437f3d1be3f8798dac6",
  "tree": "85ce1b3ebe32b3668646fd5284e69f18b660aea6",
  "parents": [
    "a41330552117c7c5f11db1b0e44dc25d0133bf4d"
  ],
  "author": {
    "name": "kimm240",
    "email": "67453494+kimm240@users.noreply.github.com",
    "time": "Tue Jan 27 19:18:01 2026 +0900"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jan 27 11:18:01 2026 +0100"
  },
  "message": "[Util]Fix memory corruption in LiftCFGToSCF when processing empty regions (#23131)\n\nThis PR fixes a segmentation fault in the `LiftCFGToSCF` pass that\noccurred when processing functions with empty regions (e.g., function\ndeclarations or empty `flow.func` definitions).\n\nThe crash was caused by the pass attempting to access blocks or check\ndominance within a region without first verifying if the region was\nempty, leading to a null pointer dereference.\n\nThis PR adds a check to skip processing if a function\u0027s region is empty in\n`LiftCFGToSCF.cpp` and ensures that empty function `definitions/declarations` are preserved in\nthe output rather than causing a compiler crash.\n\nThis is based on the bug reported from fuzzing and fixes https://github.com/iree-org/iree/issues/22971.\n\n---------\n\nSigned-off-by: Hyun Gyu Kim \u003ckimm240@telepix.net\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e6363c433fd81528e6622f159516d99d6062ddca",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Util/Transforms/LiftCFGToSCF.cpp",
      "new_id": "3443ea7c978135feff713a853e1eaa8ab1b8e43e",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Util/Transforms/LiftCFGToSCF.cpp"
    },
    {
      "type": "modify",
      "old_id": "416a0db5f7a9d019d6e08d8d67ab78a926be26cb",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/Util/Transforms/test/lift_cfg_to_scf.mlir",
      "new_id": "88c5d8879831401de9e2694986d70c9bbce2ece0",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/Util/Transforms/test/lift_cfg_to_scf.mlir"
    }
  ]
}
