[all-commits] [llvm/llvm-project] 66aff3: Issue error on invalid arithemtic conversions in C...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Jul 20 08:03:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 66aff3239849507861d050c013cbe17c4a5781a7
      https://github.com/llvm/llvm-project/commit/66aff3239849507861d050c013cbe17c4a5781a7
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/Sema/ext-int.c
    M clang/test/SemaCXX/ext-int.cpp

  Log Message:
  -----------
  Issue error on invalid arithemtic conversions in C ternary

As reported in PR46774, an invalid arithemetic conversion used in a C
ternary operator resulted in an assertion. This patch replaces that
assertion with a diagnostic stating that the conversion failed.

At the moment, I believe the only case of this happening is _ExtInt
types.




More information about the All-commits mailing list