grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.57k stars 322 forks source link

llvm7 build broke #439

Closed olilarkin closed 4 years ago

olilarkin commented 4 years ago

i fixed this on iPlug2 CI buy upgrading to llvm 9.01


In file included from /Users/runner/runners/2.168.2/work/1/s/Dependencies/Build/tmp/faust/compiler/generator/llvm/llvm_code_container.hh:26:
/Users/runner/runners/2.168.2/work/1/s/Dependencies/Build/tmp/faust/compiler/generator/llvm/llvm_instructions.hh:826:35: error: no member named 'CreateUnaryIntrinsic' in 'llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>'; did you mean 'CreateIntrinsic'?
            fCurValue = fBuilder->CreateUnaryIntrinsic(fUnaryIntrinsicTable[inst->fName], fun_args[0]);
                                  ^~~~~~~~~~~~~~~~~~~~
                                  CreateIntrinsic
/Users/runner/clang+llvm-7.0.0-x86_64-apple-darwin/include/llvm/IR/IRBuilder.h:692:13: note: 'CreateIntrinsic' declared here
  CallInst *CreateIntrinsic(Intrinsic::ID ID, ArrayRef<Value *> Args,
sletz commented 4 years ago

Thanks for reporting. I corrected to that the code compiles only with LLVM 8.0 and later in https://github.com/grame-cncm/faust/commit/bf50ef0c109bf3dadde849d2a5253f181f6699e4.