mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
ac/llvm: fix AC_TM_CHECK_IR
This was using the wrong pass.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes: 3f272fd15e ("ac/llvm: fix build with LLVM 17")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24140>
This commit is contained in:
parent
f7c74e35ee
commit
85d1159a2a
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <llvm/Analysis/TargetLibraryInfo.h>
|
||||
#include <llvm/IR/IRBuilder.h>
|
||||
#include <llvm/IR/LegacyPassManager.h>
|
||||
#include <llvm/IR/Verifier.h>
|
||||
#include <llvm/Target/TargetMachine.h>
|
||||
#include <llvm/MC/MCSubtargetInfo.h>
|
||||
#include <llvm/Support/CommandLine.h>
|
||||
|
|
@ -282,7 +283,7 @@ LLVMPassManagerRef ac_create_passmgr(LLVMTargetLibraryInfoRef target_library_inf
|
|||
LLVMAddTargetLibraryInfo(target_library_info, passmgr);
|
||||
|
||||
if (check_ir)
|
||||
unwrap(passmgr)->add(createMachineVerifierPass("mesa ir"));
|
||||
unwrap(passmgr)->add(createVerifierPass());
|
||||
|
||||
unwrap(passmgr)->add(createAlwaysInlinerLegacyPass());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue