mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Change an assert() to a diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08b75dd061
commit
f634247b1d
@ -2119,9 +2119,11 @@ InferAllTypes(const StringMap<SmallVector<TreePatternNode*,1> > *InNamedTypes) {
|
||||
// If we have input named node types, propagate their types to the named
|
||||
// values here.
|
||||
if (InNamedTypes) {
|
||||
// FIXME: Should be error?
|
||||
assert(InNamedTypes->count(I->getKey()) &&
|
||||
"Named node in output pattern but not input pattern?");
|
||||
if (!InNamedTypes->count(I->getKey())) {
|
||||
error("Node '" + std::string(I->getKey()) +
|
||||
"' in output pattern but not input pattern");
|
||||
return true;
|
||||
}
|
||||
|
||||
const SmallVectorImpl<TreePatternNode*> &InNodes =
|
||||
InNamedTypes->find(I->getKey())->second;
|
||||
|
Loading…
x
Reference in New Issue
Block a user