[all-commits] [llvm/llvm-project] f4707a: [clang][Interp][NFCI] Cleanup emitConst()

Timm Bäder via All-commits all-commits at lists.llvm.org
Mon Nov 7 00:12:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4707af2944015732b1f35e1bc66cc62f489cef2
      https://github.com/llvm/llvm-project/commit/f4707af2944015732b1f35e1bc66cc62f489cef2
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/ByteCodeExprGen.h

  Log Message:
  -----------
  [clang][Interp][NFCI] Cleanup emitConst()

Before, when emitting a regular integer constant, we went:

Int -> APInt -> int -> emit

Fix this by using regular integer constants in emitConst() and instead
converting APInt to those once.




More information about the All-commits mailing list