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 {
159
159
160
160
// / Does the BinaryOperator have the wraps attribute?
161
161
// / 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 (); }
165
163
};
166
164
167
165
static bool MustVisitNullValue (const Expr *E) {
@@ -4430,7 +4428,8 @@ Value *ScalarExprEmitter::EmitShl(const BinOpInfo &Ops) {
4430
4428
bool SanitizeSignedBase = CGF.SanOpts .has (SanitizerKind::ShiftBase) &&
4431
4429
Ops.Ty ->hasSignedIntegerRepresentation () &&
4432
4430
!CGF.getLangOpts ().isSignedOverflowDefined () &&
4433
- !CGF.getLangOpts ().CPlusPlus20 && !Ops.hasWrappingOperand ();
4431
+ !CGF.getLangOpts ().CPlusPlus20 &&
4432
+ !Ops.hasWrappingOperand ();
4434
4433
bool SanitizeUnsignedBase =
4435
4434
CGF.SanOpts .has (SanitizerKind::UnsignedShiftBase) &&
4436
4435
Ops.Ty ->hasUnsignedIntegerRepresentation ();
You can’t perform that action at this time.
0 commit comments