diff options
author | Brandon Wu <songwu0813@gmail.com> | 2025-08-20 16:39:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-20 16:39:02 +0800 |
commit | 52a2e68fda7b4adbcd677fe77ac9eb4c48039ec9 (patch) | |
tree | ac902228746cd34fbeb7d86f59892f6f04c94e69 /clang/lib/CodeGen/TargetInfo.cpp | |
parent | e16ced3ef411531377fe7f90df82286cf1eb980e (diff) | |
download | llvm-52a2e68fda7b4adbcd677fe77ac9eb4c48039ec9.zip llvm-52a2e68fda7b4adbcd677fe77ac9eb4c48039ec9.tar.gz llvm-52a2e68fda7b4adbcd677fe77ac9eb4c48039ec9.tar.bz2 |
[clang][RISCV] Fix crash on VLS calling convention (#145489)
This patch handle struct of fixed vector and struct of array of fixed
vector correctly for VLS calling convention in EmitFunctionProlog,
EmitFunctionEpilog and EmitCall.
stack on: https://github.com/llvm/llvm-project/pull/147173
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 277d69d..1e58c3f 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -63,6 +63,13 @@ LLVM_DUMP_METHOD void ABIArgInfo::dump() const { OS << "CoerceAndExpand Type="; getCoerceAndExpandType()->print(OS); break; + case TargetSpecific: + OS << "TargetSpecific Type="; + if (llvm::Type *Ty = getCoerceToType()) + Ty->print(OS); + else + OS << "null"; + break; } OS << ")\n"; } |