Fix another attribute problem with LLVM 3.3.

This commit is contained in:
kai
2013-03-03 15:10:33 +01:00
parent 820f6dbc7c
commit 5a9336bf25

View File

@@ -97,8 +97,12 @@ llvm::FunctionType* DtoFunctionType(Type* type, Type* thistype, Type* nesttype,
// Specifying nocapture on a parameter but then passing it as a
// non-nocapture argument in a function call can lead to
// _silent_ miscompilations (especially in the GVN pass).
#if LDC_LLVM_VER >= 303
.addAttribute(llvm::Attribute::NoCapture)
#else
.addAttribute(llvm::Attributes::NoCapture)
#endif
#endif
#if LDC_LLVM_VER == 302
)
#endif