[all-commits] [llvm/llvm-project] 508489: [CGExprConstant] Avoid use of ConstantExpr::getInt...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 04:02:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50848916e5e4f07231c7366e6d0014de6f7bc362
      https://github.com/llvm/llvm-project/commit/50848916e5e4f07231c7366e6d0014de6f7bc362
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M clang/lib/CodeGen/CGExprConstant.cpp

  Log Message:
  -----------
  [CGExprConstant] Avoid use of ConstantExpr::getIntegerCast() (NFC)

We're working on a ConstantInt here, so folding cannot fail. Only
avoid the API use.




More information about the All-commits mailing list