Add parentheses to silence gcc warning.

llvm-svn: 187482
This commit is contained in:
Richard Trieu 2013-07-31 04:07:28 +00:00
parent dec84e1139
commit 8dc432314e
1 changed files with 4 additions and 4 deletions

View File

@ -2419,8 +2419,8 @@ CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) &&
"Invalid cast");
assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
assert(!Ty->isVectorTy() ||
Ty->getVectorNumElements() == S->getType()->getVectorNumElements() &&
assert((!Ty->isVectorTy() ||
Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
"Invalid cast");
if (Ty->isIntOrIntVectorTy())
@ -2436,8 +2436,8 @@ CastInst *CastInst::CreatePointerCast(Value *S, Type *Ty,
assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) &&
"Invalid cast");
assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
assert(!Ty->isVectorTy() ||
Ty->getVectorNumElements() == S->getType()->getVectorNumElements() &&
assert((!Ty->isVectorTy() ||
Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
"Invalid cast");
if (Ty->isIntOrIntVectorTy())