fix x86 sanitizer failure due to use of or

This commit is contained in:
Lei Huang 2022-06-16 17:20:10 -05:00
parent 663612dfd8
commit dba2ff500d
1 changed files with 1 additions and 1 deletions

View File

@ -15613,7 +15613,7 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
RangeErrMsg += llvm::to_string(ValidMaxValue) + "]";
// Issue error if third argument is not within the valid range.
if (ConstArg < 0 or ConstArg > ValidMaxValue)
if (ConstArg < 0 || ConstArg > ValidMaxValue)
CGM.Error(E->getExprLoc(), RangeErrMsg);
// Input to vec_replace_elt is an element index, convert to byte index.