Fix a warning for missing parentheses around '||' inside of an assert.

PiperOrigin-RevId: 251712106
This commit is contained in:
River Riddle 2019-06-05 13:56:01 -07:00 committed by Mehdi Amini
parent d956010027
commit cc06860394
1 changed files with 3 additions and 3 deletions

View File

@ -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();