[clang] [clang] Implement __builtin_{clzg,ctzg} (PR #83431)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 15:45:07 PST 2024


================
@@ -3157,7 +3177,15 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
     if (Result->getType() != ResultType)
----------------
efriedma-quic wrote:

I was more thinking of the opposite: we don't need to make the result of the clz defined if we're not using it.

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


More information about the cfe-commits mailing list