Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions llvm/utils/TableGen/PrinterCapstone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ void patchIsGetImmReg(std::string &Code) {
}

std::string edgeCaseTemplArg(std::string &Code) {
unsigned long const B = Code.find_first_of("<");
unsigned long const E = Code.find(">");
size_t const B = Code.find_first_of("<");
size_t const E = Code.find(">");
if (B == std::string::npos) {
// No template
PrintFatalNote("Edge case for C++ code not handled: " + Code);
Expand Down Expand Up @@ -690,8 +690,8 @@ static std::string handleDefaultArg(const std::string &TargetName,

static void patchTemplateArgs(const std::string &TargetName,
std::string &Code) {
unsigned long const B = Code.find_first_of("<");
unsigned long const E = Code.find(">");
size_t const B = Code.find_first_of("<");
size_t const E = Code.find(">");
if (B == std::string::npos) {
Code = handleDefaultArg(TargetName, Code);
return;
Expand Down Expand Up @@ -2752,7 +2752,7 @@ void printInsnMapEntry(StringRef const &TargetName, AsmMatcherInfo &AMI,
InsnMap << getArchSupplInfo(TargetName, CGI, PPCFormatEnum) << ",\n";
InsnMap.indent(4) << getCSOpcodeEncoding(CGI);
} else {
InsnMap.indent(4) << "{ 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}, { 0 }\n";
InsnMap.indent(4) << "{ 0 }, { 0 }, { 0 }, 0, 0, {{ 0 }}, { 0 }";
}
InsnMap << '\n';
InsnMap.indent(2) << "#endif\n";
Expand Down Expand Up @@ -2866,8 +2866,7 @@ void addComplexOperand(CodeGenInstruction const *CGI,
// If so update its access flags.
std::string OpName = ArgName.str() + " - " + SubOp->getName().str();
InsOps.push_back(OpData{SubOp, std::move(OpName), std::move(OperandType),
std::move(OpDataTypes), AccessFlag,
std::move(Encoding)});
std::move(OpDataTypes), AccessFlag, Encoding});
}
}

Expand Down