From ad7e8004465e1130b3ddf3339aa0e91261dd08ec Mon Sep 17 00:00:00 2001 From: "james.brodman" Date: Tue, 22 Jan 2013 10:46:42 -0500 Subject: [PATCH] Tracking Attribute API Changes in ToT --- func.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func.cpp b/func.cpp index 98638776..cbe3aa88 100644 --- a/func.cpp +++ b/func.cpp @@ -315,7 +315,7 @@ Function::emitCode(FunctionEmitContext *ctx, llvm::Function *function, #elif defined(LLVM_3_2) (function->getFnAttributes().hasAttribute(llvm::Attributes::AlwaysInline) == false) #else // LLVM 3.3+ - (function->getAttributes().getFnAttributes().hasAttribute(llvm::Attribute::AlwaysInline) == false) + (function->getAttributes().getFnAttributes().hasAttribute(llvm::AttributeSet::FunctionIndex, llvm::Attribute::AlwaysInline) == false) #endif && costEstimate > CHECK_MASK_AT_FUNCTION_START_COST);