[all-commits] [llvm/llvm-project] 856ba6: [clang][NFC] Fix and simplify the test added in 8d...

Bruno Ricci via All-commits all-commits at lists.llvm.org
Tue Jun 9 13:18:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 856ba638d57ead6df85a4ff39531282c6c110232
      https://github.com/llvm/llvm-project/commit/856ba638d57ead6df85a4ff39531282c6c110232
  Author: Bruno Ricci <riccibrun at gmail.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M clang/test/SemaCXX/type-traits.cpp

  Log Message:
  -----------
  [clang][NFC] Fix and simplify the test added in 8dcc7eecb75b39d723fd6fee566369bf67e43fdf

We only have to create a TypeTraitExpr node with 16 bits worth of
arguments to detect an overflow with the assertion added in the
constructor of TypeTraitExpr. Moreover the static_assert in
original test is pointless since __is_constructible only check
that the corresponding expression is well-formed.




More information about the All-commits mailing list