[clang] [Clang] Fixes builtin_bswapg builtin for bool type (PR #179177)
Cheng Lingfei via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 00:16:21 PST 2026
================
@@ -16174,7 +16170,8 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
APSInt Val;
if (!EvaluateInteger(E->getArg(0), Val, Info))
return false;
- if (Val.getBitWidth() == 8)
+ // if (Val.getBitWidth() <= 8)
----------------
clingfei wrote:
LGTM overall, only a nit.
```suggestion
```
https://github.com/llvm/llvm-project/pull/179177
More information about the cfe-commits
mailing list