forked from OSchip/llvm-project
Fix a warning for missing parentheses around '||' inside of an assert.
PiperOrigin-RevId: 251712106
This commit is contained in:
parent
d956010027
commit
cc06860394
|
@ -488,9 +488,9 @@ std::vector<AbstractOperation *> MLIRContext::getRegisteredOperations() {
|
|||
}
|
||||
|
||||
void Dialect::addOperation(AbstractOperation opInfo) {
|
||||
assert(getNamespace().empty() ||
|
||||
opInfo.name.split('.').first == getNamespace() &&
|
||||
"op name doesn't start with dialect namespace");
|
||||
assert((getNamespace().empty() ||
|
||||
opInfo.name.split('.').first == getNamespace()) &&
|
||||
"op name doesn't start with dialect namespace");
|
||||
assert(&opInfo.dialect == this && "Dialect object mismatch");
|
||||
auto &impl = context->getImpl();
|
||||
|
||||
|
|
Loading…
Reference in New Issue