[clang] Fix -Wparentheses warning [NFC]
Without this gcc warns like
../../clang/lib/AST/ExprConstant.cpp:4091:63: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
4091 | (SrcVal.isVector() && SrcVal.getVectorLength() == 1) &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
4092 | "Not a valid HLSLAggregateSplatCast.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
3add3abd53
commit
9ef2103cae
1 changed files with 3 additions and 3 deletions
|
|
@ -4087,9 +4087,9 @@ static bool hlslAggSplatHelper(EvalInfo &Info, const Expr *E, APValue &SrcVal,
|
|||
if (!Evaluate(SrcVal, Info, E))
|
||||
return false;
|
||||
|
||||
assert(SrcVal.isFloat() || SrcVal.isInt() ||
|
||||
(SrcVal.isVector() && SrcVal.getVectorLength() == 1) &&
|
||||
"Not a valid HLSLAggregateSplatCast.");
|
||||
assert((SrcVal.isFloat() || SrcVal.isInt() ||
|
||||
(SrcVal.isVector() && SrcVal.getVectorLength() == 1)) &&
|
||||
"Not a valid HLSLAggregateSplatCast.");
|
||||
|
||||
if (SrcVal.isVector()) {
|
||||
assert(SrcTy->isVectorType() && "Type mismatch.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue