Cleanup: Avoid signed/unsigned comparisons.

The ones ones left are for DMD-defined constants.
This commit is contained in:
David Nadlinger
2012-12-20 01:06:41 +01:00
parent 189115fa98
commit 59a4a02e49
14 changed files with 35 additions and 36 deletions

View File

@@ -57,9 +57,9 @@ llvm::Value* IrFuncTy::getRet(Type* dty, DValue* val)
return val->getRVal();
}
llvm::Value* IrFuncTy::putParam(Type* dty, int idx, DValue* val)
llvm::Value* IrFuncTy::putParam(Type* dty, size_t idx, DValue* val)
{
assert(idx >= 0 && idx < args.size() && "invalid putParam");
assert(idx < args.size() && "invalid putParam");
if (args[idx]->rewrite) {
Logger::println("Rewrite: putParam");
LOG_SCOPE
@@ -68,9 +68,9 @@ llvm::Value* IrFuncTy::putParam(Type* dty, int idx, DValue* val)
return val->getRVal();
}
llvm::Value* IrFuncTy::getParam(Type* dty, int idx, DValue* val)
llvm::Value* IrFuncTy::getParam(Type* dty, size_t idx, DValue* val)
{
assert(idx >= 0 && idx < args.size() && "invalid getParam");
assert(idx < args.size() && "invalid getParam");
if (args[idx]->rewrite) {
Logger::println("Rewrite: getParam (get)");
LOG_SCOPE
@@ -79,9 +79,9 @@ llvm::Value* IrFuncTy::getParam(Type* dty, int idx, DValue* val)
return val->getRVal();
}
void IrFuncTy::getParam(Type* dty, int idx, DValue* val, llvm::Value* lval)
void IrFuncTy::getParam(Type* dty, size_t idx, DValue* val, llvm::Value* lval)
{
assert(idx >= 0 && idx < args.size() && "invalid getParam");
assert(idx < args.size() && "invalid getParam");
if (args[idx]->rewrite)
{