LLVM15: fix tests for LLVM15 and opaque pointers (#4252)

This commit is contained in:
Johan Engelen 2022-11-11 00:55:17 +01:00 committed by GitHub
parent fed90e8993
commit 62bcb9854b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 100 additions and 51 deletions

View file

@ -1215,9 +1215,10 @@ void DtoDefineFunction(FuncDeclaration *fd, bool linkageAvailableExternally) {
// function attributes
if (gABI->needsUnwindTables()) {
func->addFnAttr(LLAttribute::UWTable);
#if LDC_LLVM_VER >= 1500
func->setUWTableKind(llvm::UWTableKind::Default);
#else
func->addFnAttr(LLAttribute::UWTable);
#endif
}
if (opts::isAnySanitizerEnabled() &&