[clang] [Clang] add wraps and no_wraps attributes (PR #115094)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 8 15:03:56 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))
----------------
erichkeane wrote:
This can result in BOTH things happening! Should this be a diagnostic? (trying to do BOTH a wraps and a no_wraps here?).
https://github.com/llvm/llvm-project/pull/115094
More information about the cfe-commits
mailing list