Fix warnings with Windows build

This commit is contained in:
Matt Pharr
2012-02-14 10:01:45 -08:00
parent f4adbbf90c
commit 52eb4c6014
2 changed files with 4 additions and 4 deletions

View File

@@ -585,7 +585,7 @@ LLVMFlattenInsertChain(llvm::InsertElementInst *ie, int vectorWidth,
llvm::dyn_cast<llvm::ConstantVector>(insertBase);
Assert(cv != NULL);
Assert(iOffset < (int)cv->getNumOperands());
elements[iOffset] = cv->getOperand(iOffset);
elements[iOffset] = cv->getOperand((int32_t)iOffset);
}
}
}

View File

@@ -481,15 +481,15 @@ new_expression
: conditional_expression
| rate_qualified_new rate_qualified_new_type
{
$$ = new NewExpr($1, $2, NULL, NULL, @1, Union(@1, @2));
$$ = new NewExpr((int32_t)$1, $2, NULL, NULL, @1, Union(@1, @2));
}
| rate_qualified_new rate_qualified_new_type '(' initializer_list ')'
{
$$ = new NewExpr($1, $2, $4, NULL, @1, Union(@1, @2));
$$ = new NewExpr((int32_t)$1, $2, $4, NULL, @1, Union(@1, @2));
}
| rate_qualified_new rate_qualified_new_type '[' expression ']'
{
$$ = new NewExpr($1, $2, NULL, $4, @1, Union(@1, @4));
$$ = new NewExpr((int32_t)$1, $2, NULL, $4, @1, Union(@1, @4));
}
;