Files
clang-p2996/mlir/unittests/IR/InterfaceTest.cpp
Markus Böck cedeb31e6d [mlir] Support null interface to base conversion (#65988)
The current implicit conversion operator from an interface to a "base
interface" of the interface unconditionally calls `this->getImpl()`
which leads to accessing a null pointer if the interface instance is a
null instance.

This PR changes the ODS generated interface instance to explicitly check
and then return a null interface instance if the `this` instance is a
null instance.
2023-09-12 08:42:47 +02:00

3.0 KiB