From 9388395c21e512796b39baca81324ffb7b70de60 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 15 Jun 2017 15:20:49 +0200 Subject: llvm37: handle GetElementPtrInst::Create's new parameter LLVM 3.7 added a PointeeType parameter to GetElementPtrInst::Create. Let's handle that by a macro called KLEE_LLVM_GEP_TYPE, defined in Version.h. Signed-off-by: Jiri Slaby --- include/klee/Config/Version.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/klee/Config/Version.h b/include/klee/Config/Version.h index ccf54ae1..53205160 100644 --- a/include/klee/Config/Version.h +++ b/include/klee/Config/Version.h @@ -15,6 +15,12 @@ #define LLVM_VERSION(major, minor) (((major) << 8) | (minor)) #define LLVM_VERSION_CODE LLVM_VERSION(LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR) +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 7) +# define KLEE_LLVM_GEP_TYPE(x) (x), +#else +# define KLEE_LLVM_GEP_TYPE(x) +#endif + #if LLVM_VERSION_CODE >= LLVM_VERSION(4, 0) # define KLEE_LLVM_CL_VAL_END #else -- cgit 1.4.1