Fix warnings with Windows build
This commit is contained in:
@@ -585,7 +585,7 @@ LLVMFlattenInsertChain(llvm::InsertElementInst *ie, int vectorWidth,
|
|||||||
llvm::dyn_cast<llvm::ConstantVector>(insertBase);
|
llvm::dyn_cast<llvm::ConstantVector>(insertBase);
|
||||||
Assert(cv != NULL);
|
Assert(cv != NULL);
|
||||||
Assert(iOffset < (int)cv->getNumOperands());
|
Assert(iOffset < (int)cv->getNumOperands());
|
||||||
elements[iOffset] = cv->getOperand(iOffset);
|
elements[iOffset] = cv->getOperand((int32_t)iOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
parse.yy
6
parse.yy
@@ -481,15 +481,15 @@ new_expression
|
|||||||
: conditional_expression
|
: conditional_expression
|
||||||
| rate_qualified_new rate_qualified_new_type
|
| 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 ')'
|
| 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 ']'
|
| 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));
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user