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 | a73dd3e575761fa4559edfd0d3550b3820c1c68d (patch) | |
tree | 9eba8c055f5e6c12c1da2a13d2d3890f1bcc4f55 | |
parent | 1fb54cfb0a013c8ab664a6e754b34a125fe85254 (diff) | |
download | external_llvm-a73dd3e575761fa4559edfd0d3550b3820c1c68d.zip external_llvm-a73dd3e575761fa4559edfd0d3550b3820c1c68d.tar.gz external_llvm-a73dd3e575761fa4559edfd0d3550b3820c1c68d.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179696 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/IR/Core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 50d1aaa..c994ef2 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); |