diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-17 17:51:19 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-17 17:51:19 +0000 |
commit | c7400488b947f9f13de99f00932c6eb0b5d22fa8 (patch) | |
tree | 8fa2d12484b8801ffcc9f28fe3bfbb99e3ad750a /llvm/lib/IR | |
parent | 175187b36b64222db5bbd23bad67814f6d785569 (diff) | |
download | bcm5719-llvm-c7400488b947f9f13de99f00932c6eb0b5d22fa8.tar.gz bcm5719-llvm-c7400488b947f9f13de99f00932c6eb0b5d22fa8.zip |
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
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/Core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 50d1aaaff8f..c994ef2bdf8 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/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); |