llvm.org GIT mirror llvm / 7abdc5f
Fix signed/unsigned comparison warning in AsmGenMatcher generated code. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325428 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 2 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
19811981 << "&>(*Operands[OpIdx]).addRegOperands(Inst, 1);\n";
19821982 CvtOS << " break;\n";
19831983 CvtOS << " case CVT_Tied: {\n";
1984 CvtOS << " assert(OpIdx < (std::end(TiedAsmOperandTable) -\n";
1985 CvtOS << " std::begin(TiedAsmOperandTable)) &&\n";
1984 CvtOS << " assert(OpIdx < (size_t)(std::end(TiedAsmOperandTable) -\n";
1985 CvtOS << " std::begin(TiedAsmOperandTable)) &&\n";
19861986 CvtOS << " \"Tied operand not found\");\n";
19871987 CvtOS << " unsigned TiedResOpnd = TiedAsmOperandTable[OpIdx][0];\n";
19881988 CvtOS << " Inst.addOperand(Inst.getOperand(TiedResOpnd));\n";
29812981 OS << " switch (*p) {\n";
29822982 OS << " case CVT_Tied: {\n";
29832983 OS << " unsigned OpIdx = *(p+1);\n";
2984 OS << " assert(OpIdx < (std::end(TiedAsmOperandTable) -\n";
2985 OS << " std::begin(TiedAsmOperandTable)) &&\n";
2984 OS << " assert(OpIdx < (size_t)(std::end(TiedAsmOperandTable) -\n";
2985 OS << " std::begin(TiedAsmOperandTable)) &&\n";
29862986 OS << " \"Tied operand not found\");\n";
29872987 OS << " unsigned OpndNum1 = TiedAsmOperandTable[OpIdx][1];\n";
29882988 OS << " unsigned OpndNum2 = TiedAsmOperandTable[OpIdx][2];\n";