[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

Justin Stitt via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 12 16:03:05 PST 2024


================
@@ -4852,6 +4862,10 @@ BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
   if (hasStoredFPFeatures())
     setStoredFPFeatures(FPFeatures);
   setDependence(computeDependence(this));
+  if (hasWrappingOperand(Ctx))
----------------
JustinStitt wrote:

As of https://github.com/llvm/llvm-project/pull/115094/commits/445f8c7c93484a5476d85e05a289e609e3f38a94, only one attribute will persist through to BinaryOperators. Thanks

https://github.com/llvm/llvm-project/pull/115094


More information about the cfe-commits mailing list