Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tslang/lib/TypeScript/DiagnosticHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void printLocation(llvm::raw_ostream &os, mlir::Location location, llvm::StringR

void printDiagnostics(SourceMgrDiagnosticHandlerEx &sourceMgrHandler, mlir::SmallVector<std::unique_ptr<mlir::Diagnostic>> &postponedMessages, bool disableWarnings)
{
for (auto msgIndex = 0; msgIndex < postponedMessages.size(); msgIndex++)
for (int msgIndex = 0; msgIndex < static_cast<int>(postponedMessages.size()); msgIndex++)
{
auto &diag = postponedMessages[msgIndex];

Expand Down
2 changes: 1 addition & 1 deletion tslang/lib/TypeScript/MLIRGenGenerics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ namespace mlirgen
return;
}

for (auto paramIndex = 0; paramIndex < tempfuncType.size(); paramIndex++)
for (size_t paramIndex = 0; paramIndex < tempfuncType.size(); paramIndex++)
{
auto currentTemplateType = tempfuncType[paramIndex];
auto currentType = funcType[paramIndex];
Expand Down
2 changes: 1 addition & 1 deletion tslang/lib/TypeScript/MLIRGenImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -13185,7 +13185,7 @@ class MLIRGenImpl
NodeFactory nf(NodeFactoryFlags::None);

NodeArray<Expression> argumentsArray;
for (auto index = 1; index < funcType.getNumInputs(); index++)
for (unsigned index = 1; index < funcType.getNumInputs(); index++)
{
std::string paramName("p");
paramName += std::to_string(index - 1);
Expand Down
2 changes: 1 addition & 1 deletion tslang/lib/TypeScript/MLIRGenVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ namespace mlirgen
}

// past the end: the default of the element type, null for a reference (see below)
if (index >= constArrayType.getSize())
if (static_cast<unsigned>(index) >= constArrayType.getSize())
{
return V(builder.create<mlir_ts::DefaultOp>(location, constArrayType.getElementType()));
}
Expand Down
Loading