Skip to content

fix: LLVM15: Use LLVMBuildCall2()

LLVMBuildCall() is deprected.

This MR attempts to replace all uses of LLVMBuildCall() with LLVMBuildCall2().

LLVMBuildCall2() was added in f956390954f30ed97b1d1518a9f695b4dc84a972 in January 2019.

For the patches touching the radeonsi driver no #if gating should be required, since the minimum version of LLVM for radeonsi is LLVM 11, which was released in October 2020.

Patches touching gallivm, llvmpipe and aux/draw do get the #if LLVM_MAJOR_VERSION >= 8 guards. LLVM 8 was released in March 2019 and should therefore be safe.

Signed-off-by: Kai Wasserbäch kai@dev.carbon-project.org

Merge request reports

Loading