mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 10:16:36 +01:00
Fix another attribute problem with LLVM 3.3.
This commit is contained in:
@@ -97,7 +97,11 @@ llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nesttype,
|
|||||||
// Specifying nocapture on a parameter but then passing it as a
|
// Specifying nocapture on a parameter but then passing it as a
|
||||||
// non-nocapture argument in a function call can lead to
|
// non-nocapture argument in a function call can lead to
|
||||||
// _silent_ miscompilations (especially in the GVN pass).
|
// _silent_ miscompilations (especially in the GVN pass).
|
||||||
|
#if LDC_LLVM_VER >= 303
|
||||||
|
.addAttribute(llvm::Attribute::NoCapture)
|
||||||
|
#else
|
||||||
.addAttribute(llvm::Attributes::NoCapture)
|
.addAttribute(llvm::Attributes::NoCapture)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if LDC_LLVM_VER == 302
|
#if LDC_LLVM_VER == 302
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user