mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
radeonsi: fix build of si_eliminate_const_vs_outputs on LLVM <= 3.8
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
2db56434d4
commit
f19f71830b
1 changed files with 2 additions and 3 deletions
|
|
@ -6609,10 +6609,9 @@ static void si_eliminate_const_vs_outputs(struct si_shader_context *ctx)
|
|||
if (LLVMGetInstructionOpcode(cur) != LLVMCall)
|
||||
continue;
|
||||
|
||||
LLVMValueRef callee = LLVMGetCalledValue(cur);
|
||||
LLVMValueKind kind = LLVMGetValueKind(callee);
|
||||
LLVMValueRef callee = lp_get_called_value(cur);
|
||||
|
||||
if (kind != LLVMFunctionValueKind)
|
||||
if (!lp_is_function(callee))
|
||||
continue;
|
||||
|
||||
const char *name = LLVMGetValueName(callee);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue