aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-04-17 18:26:02 +0000
committerBill Wendling <isanbard@gmail.com>2013-04-17 18:26:02 +0000
commit403569373f1e63cc96ea8274b18088bf7ff17bd6 (patch)
tree6bda1bbd8ba3c2a69d2eb326dba30434ddc3dbae /lib/IR/Core.cpp
parenta73dd3e575761fa4559edfd0d3550b3820c1c68d (diff)
downloadexternal_llvm-403569373f1e63cc96ea8274b18088bf7ff17bd6.zip
external_llvm-403569373f1e63cc96ea8274b18088bf7ff17bd6.tar.gz
external_llvm-403569373f1e63cc96ea8274b18088bf7ff17bd6.tar.bz2
Appease a gcc warning about an overflow in a constant conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Core.cpp')
-rw-r--r--lib/IR/Core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index c994ef2..53244e7 100644
--- a/lib/IR/Core.cpp
+++ b/lib/IR/Core.cpp
@@ -1446,7 +1446,8 @@ void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) {
void LLVMAddTargetDependentFunctionAttr(LLVMValueRef Fn, const char *A,
const char *V) {
Function *Func = unwrap<Function>(Fn);
- AttributeSet::AttrIndex Idx = AttributeSet::FunctionIndex;
+ AttributeSet::AttrIndex Idx =
+ AttributeSet::AttrIndex(AttributeSet::FunctionIndex);
AttrBuilder B;
B.addAttribute(A, V);