[all-commits] [llvm/llvm-project] 13b219: [MLIR] Add an assert in Operation::getOpResultImpl...
Shivam Gupta via All-commits
all-commits at lists.llvm.org
Sun Apr 9 13:20:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 13b21971fbf5cd47dc3acb0c593aae8ae980c8d8
https://github.com/llvm/llvm-project/commit/13b21971fbf5cd47dc3acb0c593aae8ae980c8d8
Author: Shivam Gupta <Shivam.Gupta2 at amd.com>
Date: 2023-04-10 (Mon, 10 Apr 2023)
Changed paths:
M mlir/include/mlir/IR/Operation.h
Log Message:
-----------
[MLIR] Add an assert in Operation::getOpResultImpl for out of range result
This fix https://github.com/llvm/llvm-project/issues/61962.
Calling op->getResult(0) on a function like operation with no results
returned a garbage pointer.
This patch add assert to check number is in range.
Differential Revision: https://reviews.llvm.org/D147883
More information about the All-commits
mailing list