projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73dd3e
)
Appease a gcc warning about an overflow in a constant conversion.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 17 Apr 2013 18:26:02 +0000
(18:26 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 17 Apr 2013 18:26:02 +0000
(18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179703
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Core.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Core.cpp
b/lib/IR/Core.cpp
index
c994ef2
..
53244e7
100644
(file)
--- 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);