diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-06-28 07:43:43 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-06-28 07:43:43 +0000 |
commit | 62cfcf62f627e5093fb37026a6d8c98e4d2ef04c (patch) | |
tree | 255bbf35b9a2ddd5592f4bff3103342728645ee3 /contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp | |
parent | 016bac89db9ce584b0a5980b119c35b9825ab0f8 (diff) | |
parent | dbb6490749e2bb2a514a8a305b8fadc3495183e6 (diff) |
Notes
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp b/contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp index 370b14a337a5..12e17ac751b4 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/TargetInfo.cpp @@ -9677,7 +9677,8 @@ ABIArgInfo RISCVABIInfo::classifyArgumentType(QualType Ty, bool IsFixed, uint64_t Size = getContext().getTypeSize(Ty); // Pass floating point values via FPRs if possible. - if (IsFixed && Ty->isFloatingType() && FLen >= Size && ArgFPRsLeft) { + if (IsFixed && Ty->isFloatingType() && !Ty->isComplexType() && + FLen >= Size && ArgFPRsLeft) { ArgFPRsLeft--; return ABIArgInfo::getDirect(); } |