llvm.org GIT mirror llvm / f634247
Change an assert() to a diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212637 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 5 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
21182118 // If we have input named node types, propagate their types to the named
21192119 // values here.
21202120 if (InNamedTypes) {
2121 // FIXME: Should be error?
2122 assert(InNamedTypes->count(I->getKey()) &&
2123 "Named node in output pattern but not input pattern?");
2121 if (!InNamedTypes->count(I->getKey())) {
2122 error("Node '" + std::string(I->getKey()) +
2123 "' in output pattern but not input pattern");
2124 return true;
2125 }
21242126
21252127 const SmallVectorImpl &InNodes =
21262128 InNamedTypes->find(I->getKey())->second;