forked from OSchip/llvm-project
Use consistent code for setting FPFeatures from operator constructors.
This commit is contained in:
parent
9860e68450
commit
ae3067055b
|
@ -4487,8 +4487,8 @@ BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
|
|||
SubExprs[LHS] = lhs;
|
||||
SubExprs[RHS] = rhs;
|
||||
BinaryOperatorBits.HasFPFeatures = FPFeatures.requiresTrailingStorage();
|
||||
if (BinaryOperatorBits.HasFPFeatures)
|
||||
*getTrailingFPFeatures() = FPFeatures;
|
||||
if (hasStoredFPFeatures())
|
||||
setStoredFPFeatures(FPFeatures);
|
||||
setDependence(computeDependence(this));
|
||||
}
|
||||
|
||||
|
@ -4504,8 +4504,8 @@ BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
|
|||
SubExprs[LHS] = lhs;
|
||||
SubExprs[RHS] = rhs;
|
||||
BinaryOperatorBits.HasFPFeatures = FPFeatures.requiresTrailingStorage();
|
||||
if (BinaryOperatorBits.HasFPFeatures)
|
||||
*getTrailingFPFeatures() = FPFeatures;
|
||||
if (hasStoredFPFeatures())
|
||||
setStoredFPFeatures(FPFeatures);
|
||||
setDependence(computeDependence(this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue