Skip to content

Commit

Permalink
ac/nir: Fix include for LLVMAddPromoteMemoryToRegisterPass
Browse files Browse the repository at this point in the history
Include llvm-c/Transforms/Utils.h with the newest LLVM 7

Signed-of-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
  • Loading branch information
FireBurn authored and Marek Olšák committed Apr 2, 2018
1 parent 4cbecb6 commit 7e144ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amd/vulkan/radv_nir_to_llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include <llvm-c/Core.h>
#include <llvm-c/TargetMachine.h>
#include <llvm-c/Transforms/Scalar.h>
#if HAVE_LLVM >= 0x0700
#include <llvm-c/Transforms/Utils.h>
#endif

#include "sid.h"
#include "gfx9d.h"
Expand Down

0 comments on commit 7e144ac

Please sign in to comment.