aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-03-26 11:50:41 -0700
committerCraig Topper <craig.topper@sifive.com>2024-03-26 11:53:17 -0700
commit2fbc40d36dd8e21fab4cc6cb43984baaa39bcd59 (patch)
treea2791f8f4793f2725fde10808ddb2c8381d275f2 /clang/lib/CodeGen/CodeGenModule.cpp
parentcf6e62d8c308c7bf2885c422983c80842d735456 (diff)
downloadllvm-2fbc40d36dd8e21fab4cc6cb43984baaa39bcd59.zip
llvm-2fbc40d36dd8e21fab4cc6cb43984baaa39bcd59.tar.gz
llvm-2fbc40d36dd8e21fab4cc6cb43984baaa39bcd59.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions