We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead0a97 commit b8e8c6eCopy full SHA for b8e8c6e
clang/lib/CodeGen/Targets/RISCV.cpp
@@ -529,7 +529,10 @@ class RISCVTargetCodeGenInfo : public TargetCodeGenInfo {
529
RISCVTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen,
530
unsigned FLen, bool EABI)
531
: TargetCodeGenInfo(
532
- std::make_unique<RISCVABIInfo>(CGT, XLen, FLen, EABI)) {}
+ std::make_unique<RISCVABIInfo>(CGT, XLen, FLen, EABI)) {
533
+ SwiftInfo =
534
+ std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false);
535
+ }
536
537
void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
538
CodeGen::CodeGenModule &CGM) const override {
0 commit comments