[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 22 12:33:38 PDT 2025
================
@@ -12985,6 +12985,16 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
assert(Src.isInt());
return Success((Src.getInt() & (Alignment - 1)) == 0 ? 1 : 0, E);
}
+ case Builtin::BI__builtin_is_modifiable_lvalue: {
+ const Expr *Arg = E->getArg(0);
+ SpeculativeEvaluationRAII SpeculativeEval(Info);
+ IgnoreSideEffectsRAII Fold(Info);
----------------
Sirraide wrote:
```suggestion
```
As was already pointed out (I think), we don’t need these here since we’re not doing any evaluating anyway.
https://github.com/llvm/llvm-project/pull/132524
More information about the cfe-commits
mailing list