Skip to content

Commit

Permalink
Don't store AttributeSet::FunctionIndex as an int.
Browse files Browse the repository at this point in the history
GCC complains: Core.cpp:1449:27: warning: overflow in implicit constant conversion [-Woverflow]
I'm not sure if that's really a problem here, but using the enum type is better
style anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179696 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Apr 17, 2013
1 parent 1fb54cf commit a73dd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IR/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a73dd3e

Please sign in to comment.