[RISCV] Fix assertion when casting LMUL!=1 RVV types to GNU types with -mrvv-vector...
authorCraig Topper <craig.topper@sifive.com>
Thu, 18 May 2023 16:21:38 +0000 (09:21 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 18 May 2023 16:21:38 +0000 (09:21 -0700)
commitfa0a39113a28448529f62d3ea30a7b7a8066f231
treee321ba002e4bd107fef339c693ae8ab849a1115a
parentfbd8f8985e36581487371e9ff4ac7d99655b51e7
[RISCV] Fix assertion when casting LMUL!=1 RVV types to GNU types with -mrvv-vector-bits.

We need to call isRVVVLSBuiltinType() before calling getRVVTypeSize().
clang/lib/AST/ASTContext.cpp
clang/test/Sema/attr-riscv-rvv-vector-bits.c