mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 22:50:53 +03:00
LLVM15: fix tests for LLVM15 and opaque pointers (#4252)
This commit is contained in:
parent
fed90e8993
commit
62bcb9854b
18 changed files with 100 additions and 51 deletions
|
@ -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() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue