mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Emit an error instead of an assertion if trying to do bogus things in result patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07ac89f30a
commit
7893f13ad6
@ -2281,8 +2281,8 @@ public:
|
|||||||
return std::make_pair(1, ResNo);
|
return std::make_pair(1, ResNo);
|
||||||
} else {
|
} else {
|
||||||
N->dump();
|
N->dump();
|
||||||
assert(0 && "Unknown node in result pattern!");
|
std::cerr << "\n";
|
||||||
return std::make_pair(1, ~0U);
|
throw std::string("Unknown node in result pattern!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user