From: Richard Smith Date: Sun, 16 Aug 2020 22:40:38 +0000 (-0700) Subject: Use consistent code for setting FPFeatures from operator constructors. X-Git-Tag: llvmorg-13-init~14584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae3067055b33f6ab5657fbae5845cc743b91c299;p=platform%2Fupstream%2Fllvm.git Use consistent code for setting FPFeatures from operator constructors. --- diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index f5aecfb..e3e5e9d 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -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)); }