[Sema] Use the canonical type in function isVector
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 22 Nov 2019 20:26:54 +0000 (12:26 -0800)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 22 Nov 2019 20:57:24 +0000 (12:57 -0800)
commita6150b48cea00ab31e9335cc73770327acc4cb3a
treedda99570c3068879b3c35b0550d79e34f4515592
parent2b795637b9024d76e53cd303ad74ac02ba22da5b
[Sema] Use the canonical type in function isVector

This fixes an assertion in Sema::CreateBuiltinBinOp that fails when one
of the vector operand's element type is a typedef of __fp16.

rdar://problem/55983556
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/fp16vec-sema.c