[all-commits] [llvm/llvm-project] 699449: [clang][Interp][NFC] Use a SourceRange for errors

Timm Bäder via All-commits all-commits at lists.llvm.org
Fri Oct 14 03:47:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 699449d71eadb1499bf6a98999c2abdaa6b1294a
      https://github.com/llvm/llvm-project/commit/699449d71eadb1499bf6a98999c2abdaa6b1294a
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

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

  Log Message:
  -----------
  [clang][Interp][NFC] Use a SourceRange for errors

This makes the error message generated by bail() a bit more pleasant to
read.


  Commit: 81c5b5d80efab9de616d6f8e42cd007f9c16e36b
      https://github.com/llvm/llvm-project/commit/81c5b5d80efab9de616d6f8e42cd007f9c16e36b
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/Integral.h

  Log Message:
  -----------
  [clang][Interp][NFC] Simplify Integral using constexpr if

Just keep one version of the function and differentiate between
std::is_signed() and unsigned using a constexpr if, instead of having
two different versions for the signed and unsigned cases.


Compare: https://github.com/llvm/llvm-project/compare/8ca505871eeb...81c5b5d80efa


More information about the All-commits mailing list