[clang] [Clang] Fixes builtin_bswapg builtin for bool type (PR #179177)

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 2 00:29:38 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)
----------------
woruyu wrote:

Done! thanks for catching, I forgot to delete.

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


More information about the cfe-commits mailing list