File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,7 @@ struct BinOpInfo {
159159
160160 // / Does the BinaryOperator have the wraps attribute?
161161 // / If so, we can ellide overflow sanitizer checks.
162- bool hasWrappingOperand () const {
163- return E->getType ().hasWrapsAttr ();
164- }
162+ bool hasWrappingOperand () const { return E->getType ().hasWrapsAttr (); }
165163};
166164
167165static bool MustVisitNullValue (const Expr *E) {
@@ -4430,7 +4428,8 @@ Value *ScalarExprEmitter::EmitShl(const BinOpInfo &Ops) {
44304428 bool SanitizeSignedBase = CGF.SanOpts .has (SanitizerKind::ShiftBase) &&
44314429 Ops.Ty ->hasSignedIntegerRepresentation () &&
44324430 !CGF.getLangOpts ().isSignedOverflowDefined () &&
4433- !CGF.getLangOpts ().CPlusPlus20 && !Ops.hasWrappingOperand ();
4431+ !CGF.getLangOpts ().CPlusPlus20 &&
4432+ !Ops.hasWrappingOperand ();
44344433 bool SanitizeUnsignedBase =
44354434 CGF.SanOpts .has (SanitizerKind::UnsignedShiftBase) &&
44364435 Ops.Ty ->hasUnsignedIntegerRepresentation ();
You can’t perform that action at this time.
0 commit comments