[RISCV] Split compound if statement to fix a crash.
We're not allowed to call getELEN when the vector extension is not enabled. If we're looking at a vector type, isTypeLegal would only return true if the vector extensions are enabled. So early out for non-vector types before we call isTypeLegal and getELEN.
parent
cf6e62d8
Please register or sign in to comment