summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index 50d1aaaff8f..c994ef2bdf8 100644
--- a/lib/IR/Core.cpp
+++ b/lib/IR/Core.cpp
@@ -1446,7 +1446,7 @@ void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) {
void LLVMAddTargetDependentFunctionAttr(LLVMValueRef Fn, const char *A,
const char *V) {
Function *Func = unwrap<Function>(Fn);
- int Idx = AttributeSet::FunctionIndex;
+ AttributeSet::AttrIndex Idx = AttributeSet::FunctionIndex;
AttrBuilder B;
B.addAttribute(A, V);