[all-commits] [llvm/llvm-project] cf73f1: [clang][ExprConst] Fix second arg of __builtin_{cl...

OverMighty via All-commits all-commits at lists.llvm.org
Fri Mar 29 14:01:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf73f136c5e22e7e4090fc762456ace47752a898
      https://github.com/llvm/llvm-project/commit/cf73f136c5e22e7e4090fc762456ace47752a898
  Author: OverMighty <its.overmighty at gmail.com>
  Date:   2024-03-29 (Fri, 29 Mar 2024)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/Sema/constant-builtins-all-args-evaluated.cpp

  Log Message:
  -----------
  [clang][ExprConst] Fix second arg of __builtin_{clzg,ctzg} not always being evaluated (#86742)

Even if we don't actually use the value of the second argument, we have to evaluate it for side-effects.

---------

Co-authored-by: Richard Smith <richard at metafoo.co.uk>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list