mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
fix a broke range check
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8a3bde6fd
commit
3a7319d5ed
@ -785,7 +785,7 @@ void DAGISelEmitter::ParseAndResolveInstructions() {
|
||||
|
||||
// Check that all of the results occur first in the list.
|
||||
for (unsigned i = 0; i != NumResults; ++i) {
|
||||
if (NumResults == CGI.OperandList.size())
|
||||
if (i == CGI.OperandList.size())
|
||||
I->error("'" + InstResults.begin()->first +
|
||||
"' set but does not appear in operand list!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user