@@ -642,8 +642,8 @@ void patchIsGetImmReg(std::string &Code) {
642642}
643643
644644std::string edgeCaseTemplArg (std::string &Code) {
645- unsigned long const B = Code.find_first_of (" <" );
646- unsigned long const E = Code.find (" >" );
645+ size_t const B = Code.find_first_of (" <" );
646+ size_t const E = Code.find (" >" );
647647 if (B == std::string::npos) {
648648 // No template
649649 PrintFatalNote (" Edge case for C++ code not handled: " + Code);
@@ -690,8 +690,8 @@ static std::string handleDefaultArg(const std::string &TargetName,
690690
691691static void patchTemplateArgs (const std::string &TargetName,
692692 std::string &Code) {
693- unsigned long const B = Code.find_first_of (" <" );
694- unsigned long const E = Code.find (" >" );
693+ size_t const B = Code.find_first_of (" <" );
694+ size_t const E = Code.find (" >" );
695695 if (B == std::string::npos) {
696696 Code = handleDefaultArg (TargetName, Code);
697697 return ;
@@ -2752,7 +2752,7 @@ void printInsnMapEntry(StringRef const &TargetName, AsmMatcherInfo &AMI,
27522752 InsnMap << getArchSupplInfo (TargetName, CGI, PPCFormatEnum) << " ,\n " ;
27532753 InsnMap.indent (4 ) << getCSOpcodeEncoding (CGI);
27542754 } else {
2755- InsnMap.indent (4 ) << " { 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}, { 0 }\n " ;
2755+ InsnMap.indent (4 ) << " { 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}, { 0 }" ;
27562756 }
27572757 InsnMap << ' \n ' ;
27582758 InsnMap.indent (2 ) << " #endif\n " ;
@@ -2866,8 +2866,7 @@ void addComplexOperand(CodeGenInstruction const *CGI,
28662866 // If so update its access flags.
28672867 std::string OpName = ArgName.str () + " - " + SubOp->getName ().str ();
28682868 InsOps.push_back (OpData{SubOp, std::move (OpName), std::move (OperandType),
2869- std::move (OpDataTypes), AccessFlag,
2870- std::move (Encoding)});
2869+ std::move (OpDataTypes), AccessFlag, Encoding});
28712870 }
28722871}
28732872
0 commit comments