Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Support LLVM12 #503

Merged
merged 15 commits into from
Jul 26, 2021
Merged
Prev Previous commit
Next Next commit
Formatting
Jcd1230 committed Jul 19, 2021
commit c056eb50fa8cf9670a5ea4c4ce95058aba404376
4 changes: 2 additions & 2 deletions src/tcompiler.cpp
Original file line number Diff line number Diff line change
@@ -957,7 +957,7 @@ struct CCallingConv {
}

template <typename FnOrCall>
void addSRetAttr(FnOrCall *r, int idx, Type* ty) {
void addSRetAttr(FnOrCall *r, int idx, Type *ty) {
#if LLVM_VERSION < 120
r->addAttribute(idx, Attribute::StructRet);
#else
@@ -966,7 +966,7 @@ struct CCallingConv {
r->addAttribute(idx, Attribute::NoAlias);
}
template <typename FnOrCall>
void addByValAttr(FnOrCall *r, int idx, Type* ty) {
void addByValAttr(FnOrCall *r, int idx, Type *ty) {
#if LLVM_VERSION < 120
r->addAttribute(idx, Attribute::ByVal);
#else