[all-commits] [llvm/llvm-project] d6a482: [clang][bytecode] Special-case ConstantExpr in if ...

Timm Baeder via All-commits all-commits at lists.llvm.org
Fri Mar 7 08:35:28 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6a4828c8a37ff9eee5da745a8a012657fe2af98
      https://github.com/llvm/llvm-project/commit/d6a4828c8a37ff9eee5da745a8a012657fe2af98
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-03-07 (Fri, 07 Mar 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp

  Log Message:
  -----------
  [clang][bytecode] Special-case ConstantExpr in if conditions (#130294)

This happens a lot with `if constexpr` with a condition based on a
template param. In those cases, the condition is a ConstantExpr with a
value already set, so we can use that and ignore the other branch.



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