Skip to content

Commit

Permalink
Merge pull request JuliaLang#26456 from JuliaLang/vc/fixup_ccall
Browse files Browse the repository at this point in the history
fixup usage of AttributeBuilder in ccall.cpp for LLVM 5+
  • Loading branch information
vchuravy authored Mar 14, 2018
2 parents f354532 + c4a4b06 commit 71ef5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,11 @@ std::string generate_func_sig(const char *fname)
do { // for each arg for which this type applies, add the appropriate LLVM parameter attributes
if (i < nargs) { // if vararg, the last declared arg type may not have a corresponding arg value
#if JL_LLVM_VERSION >= 50000
paramattrs.push_back(std::copy(ab));
AttributeSet params = AttributeSet::get(jl_LLVMContext, ab);
#else
AttributeSet params = AttributeSet::get(jl_LLVMContext, i + sret + 1, ab);
paramattrs.push_back(params);
#endif
paramattrs.push_back(params);
}
i++;
} while (current_isVa && i < nargs); // if is this is the vararg, loop to the end
Expand Down

0 comments on commit 71ef5a0

Please sign in to comment.