mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-27 15:50:19 +02:00
And still more changes for LLVM 3.2
There were additional changes to the Attributes class.
This commit is contained in:
+2
-2
@@ -44,7 +44,7 @@ llvm::Attributes DtoShouldExtend(Type* type)
|
||||
case Tint8:
|
||||
case Tint16:
|
||||
#if LDC_LLVM_VER >= 302
|
||||
return llvm::Attributes::get(llvm::Attributes::Builder().addAttribute(llvm::Attributes::SExt));
|
||||
return llvm::Attributes::get(gIR->context(), llvm::Attributes::Builder().addAttribute(llvm::Attributes::SExt));
|
||||
#else
|
||||
return llvm::Attribute::SExt;
|
||||
#endif
|
||||
@@ -52,7 +52,7 @@ llvm::Attributes DtoShouldExtend(Type* type)
|
||||
case Tuns8:
|
||||
case Tuns16:
|
||||
#if LDC_LLVM_VER >= 302
|
||||
return llvm::Attributes::get(llvm::Attributes::Builder().addAttribute(llvm::Attributes::ZExt));
|
||||
return llvm::Attributes::get(gIR->context(), llvm::Attributes::Builder().addAttribute(llvm::Attributes::ZExt));
|
||||
#else
|
||||
return llvm::Attribute::ZExt;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user