mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 04:09:45 +00:00
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
This commit is contained in:
parent
a73dd3e575
commit
403569373f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user