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 188df9b commit 4ee0677Copy full SHA for 4ee0677
clang/lib/CodeGen/Targets/AVR.cpp
@@ -112,7 +112,10 @@ class AVRABIInfo : public DefaultABIInfo {
112
class AVRTargetCodeGenInfo : public TargetCodeGenInfo {
113
public:
114
AVRTargetCodeGenInfo(CodeGenTypes &CGT, unsigned NPR, unsigned NRR)
115
- : TargetCodeGenInfo(std::make_unique<AVRABIInfo>(CGT, NPR, NRR)) {}
+ : TargetCodeGenInfo(std::make_unique<AVRABIInfo>(CGT, NPR, NRR)) {
116
+ SwiftInfo =
117
+ std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false);
118
+ }
119
120
LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
121
const VarDecl *D) const override {
0 commit comments