OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=29
35 lines
917 B
Diff
35 lines
917 B
Diff
From: Jiri Slaby <jirislaby@gmail.com>
|
|
Date: Thu, 15 Jun 2017 15:20:49 +0200
|
|
Subject: llvm37: handle GetElementPtrInst::Create's new parameter
|
|
Patch-mainline: no
|
|
|
|
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 <jirislaby@gmail.com>
|
|
---
|
|
include/klee/Config/Version.h | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/include/klee/Config/Version.h b/include/klee/Config/Version.h
|
|
index a0e126bfbf9a..efc3cdd00b85 100644
|
|
--- a/include/klee/Config/Version.h
|
|
+++ b/include/klee/Config/Version.h
|
|
@@ -27,6 +27,12 @@
|
|
# define KLEE_LLVM_GEP_TYPE(x)
|
|
#endif
|
|
|
|
+#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
|
|
--
|
|
2.14.1
|
|
|