[all-commits] [llvm/llvm-project] bb0614: Fix __attribute__((enable_if)) to treat arguments ...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Oct 30 13:39:44 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bb061491316bbd516a7551fe36128ead0935010d
      https://github.com/llvm/llvm-project/commit/bb061491316bbd516a7551fe36128ead0935010d
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2019-10-30 (Wed, 30 Oct 2019)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/enable_if.cpp

  Log Message:
  -----------
  Fix __attribute__((enable_if)) to treat arguments with side-effects as
non-constant.

We previously failed the entire condition evaluation if an unmodeled
side-effect was encountered in an argument, even if that argument was
unused in the attribute's condition.




More information about the All-commits mailing list