We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In newer versions of LLVM (from LLVM 14), there's no default AttrBuilder constructor, it's necessary to add a LLVMContext.
Modify:
Learn-LLVM-12/Chapter05/tinylang/lib/CodeGen/CGProcedure.cpp
Lines 201 to 207 in 8e94087
For:
llvm::AttrBuilder Attr(CGM.getLLVMCtx()); // add context here from CGM object llvm::TypeSize Sz = CGM.getModule()->getDataLayout().getTypeStoreSize(CGM.convertType(FP->getType())); Attr.addDereferenceableAttr(Sz); Attr.addAttribute(llvm::Attribute::NoCapture); Arg->addAttrs(Attr);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In newer versions of LLVM (from LLVM 14), there's no default AttrBuilder constructor, it's necessary to add a LLVMContext.
Modify:
Learn-LLVM-12/Chapter05/tinylang/lib/CodeGen/CGProcedure.cpp
Lines 201 to 207 in 8e94087
For:
The text was updated successfully, but these errors were encountered: