1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Don't store AttributeSet::FunctionIndex as an int.

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.

llvm-svn: 179696
This commit is contained in:
Benjamin Kramer 2013-04-17 17:51:19 +00:00
parent 046b0abdfb
commit d654a81243

View File

@ -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);