summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb544363d0e4ca667c46d7b5a4ff2404a4025fa04 (patch)
treedd60013b23c41e84220102fec5b61332ede73cc8 /llvm/lib/IR/Core.cpp
parent182bd6c0febb6e0312a6ac9162ee4113ca29deda (diff)
downloadbcm5719-llvm-b544363d0e4ca667c46d7b5a4ff2404a4025fa04.tar.gz
bcm5719-llvm-b544363d0e4ca667c46d7b5a4ff2404a4025fa04.zip
Appease a gcc warning about an overflow in a constant conversion.
llvm-svn: 179703
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index c994ef2bdf8..53244e7cd41 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud