mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Add parentheses to silence gcc warning.
llvm-svn: 187482
This commit is contained in:
parent
d6e72c514e
commit
24685ab8b5
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user