diff options
author | Lei Huang <lei@ca.ibm.com> | 2022-06-16 17:20:10 -0500 |
---|---|---|
committer | Lei Huang <lei@ca.ibm.com> | 2022-06-16 17:20:31 -0500 |
commit | dba2ff500d5b29f2d18b93aed5caa5b4ef7c94dd (patch) | |
tree | d456673478cd86f469827c4627b22c0f2702c858 /clang | |
parent | 663612dfd8f63e82936f32755fbba2aa219a7ae0 (diff) | |
download | llvm-dba2ff500d5b29f2d18b93aed5caa5b4ef7c94dd.zip llvm-dba2ff500d5b29f2d18b93aed5caa5b4ef7c94dd.tar.gz llvm-dba2ff500d5b29f2d18b93aed5caa5b4ef7c94dd.tar.bz2 |
fix x86 sanitizer failure due to use of or
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 662a663..ce4ecc5 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -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. |