Skip to content

Commit

Permalink
silence unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Dec 30, 2020
1 parent a82a4ca commit ea0e680
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5631,6 +5631,7 @@ static jl_returninfo_t get_specsig_function(jl_codectx_t &ctx, Module *M, String
unsigned argno = 1;
#if JL_LLVM_VERSION < 120000
attributes = attributes.addAttribute(jl_LLVMContext, argno, Attribute::StructRet);
(void*)sret; // silence unused variable error
#else
Attribute sret = Attribute::getWithStructRetType(jl_LLVMContext, srt);
attributes = attributes.addAttribute(jl_LLVMContext, argno, sret);
Expand Down

0 comments on commit ea0e680

Please sign in to comment.