Commit 2fbc40d3 authored by Craig Topper's avatar Craig Topper
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment