[Sema][RISCV][SVE] Allow ?: to select Typedef BuiltinType in C
authorShihPo Hung <shihpo.hung@sifive.com>
Thu, 3 Jun 2021 08:10:21 +0000 (16:10 +0800)
committerShihPo Hung <shihpo.hung@sifive.com>
Fri, 4 Jun 2021 07:33:14 +0000 (15:33 +0800)
commitfcf8827a98beb1f8baea883451508d9cd91f57bc
tree2b46613cf448336bb23cdc126c799b49969ea1c1
parent3d8180cb2ffc2272b56e3445c74f2f3170562403
[Sema][RISCV][SVE] Allow ?: to select Typedef BuiltinType in C

This patch solves an error such as:
  incompatible operand types ('vbool4_t' (aka '__rvv_bool4_t') and '__rvv_bool4_t')
when one of the value is a TypedefType of the other value in ?:.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D103603
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/riscv-types.c
clang/test/Sema/sizeless-1.c