summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2024-02-07 09:00:32 +0100
committerGitHub <noreply@github.com>2024-02-07 09:00:32 +0100
commit9a028afdd655f8e378819e4125292d973985f3f4 (patch)
treea5f11f2d0f6ffdca9292f29f25d4bc96bfdf8bd8 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent93962ea1176b91239496378e7141a44dc95a5efd (diff)
[mlir][IR][NFC] `Listener::notifyMatchFailure` returns `void` (#80704)
There are two `notifyMatchFailure` methods: one in the rewriter and one in the listener. The one in the rewriter notifies the listener and returns "failure" for convenience. The one in the listener should not return anything; it is just a notification. It can currently be abused to return "success" from the rewriter function. That would be a violation of the rewriter API rules. Also make sure that the listener is always notified about match failures, not just with `NDEBUG`. The current implementation is consistent: one `notifyMatchFailure` overload notifies only in debug mode and another one notifies all the time.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions