diff options
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 15db9fd305..715438c8ff 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -1006,7 +1006,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, if (RetAttrs.hasAttributes()) PAL.push_back(llvm:: - AttributeWithIndex::get(0, + AttributeWithIndex::get(llvm::AttrListPtr::ReturnIndex, llvm::Attributes::get(getLLVMContext(), RetAttrs))); @@ -1080,7 +1080,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, ++Index; } if (FuncAttrs.hasAttributes()) - PAL.push_back(llvm::AttributeWithIndex::get(~0, + PAL.push_back(llvm:: + AttributeWithIndex::get(llvm::AttrListPtr::FunctionIndex, llvm::Attributes::get(getLLVMContext(), FuncAttrs))); } |