-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[mlir] Support null interface to base conversion #65988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
@llvm/pr-subscribers-mlir-core ChangesThe current implicit conversion operator from an interface to a "base interface" of the interface unconditionally calls This PR changes the ODS generated interface instance to explicitly check and then return a null interface instance if the
|
@llvm/pr-subscribers-mlir ChangesThe current implicit conversion operator from an interface to a "base interface" of the interface unconditionally calls This PR changes the ODS generated interface instance to explicitly check and then return a null interface instance if the
|
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.
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.