forked from OSchip/llvm-project
Silence GCC warning about && and || without explicit grouping.
llvm-svn: 110537
This commit is contained in:
parent
2b1077fb1d
commit
9c524c1d53
|
@ -857,8 +857,8 @@ static bool IsVectorConversion(ASTContext &Context, QualType FromType,
|
||||||
// same size
|
// same size
|
||||||
if (ToType->isVectorType() && FromType->isVectorType()) {
|
if (ToType->isVectorType() && FromType->isVectorType()) {
|
||||||
if (Context.areCompatibleVectorTypes(FromType, ToType) ||
|
if (Context.areCompatibleVectorTypes(FromType, ToType) ||
|
||||||
Context.getLangOptions().LaxVectorConversions &&
|
(Context.getLangOptions().LaxVectorConversions &&
|
||||||
(Context.getTypeSize(FromType) == Context.getTypeSize(ToType))) {
|
(Context.getTypeSize(FromType) == Context.getTypeSize(ToType)))) {
|
||||||
ICK = ICK_Vector_Conversion;
|
ICK = ICK_Vector_Conversion;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue