about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2018-01-15 10:27:54 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-10-26 13:31:07 +0100
commit5fe62b55508a9374519b363f08fc9bf32a0c5151 (patch)
tree7980eff90d0a2d598bd330064b825e729c1bc464 /include
parentad0237344606928b2600182986095320b61634fb (diff)
downloadklee-5fe62b55508a9374519b363f08fc9bf32a0c5151.tar.gz
llvm5: handle getOrInsertFunction terminator
llvm 5 does not terminate getOrInsertFunction parameters with NULL, take
care of that.

Since commit 9d54400bba7eb04bca80fce97fa170452d19eaf1.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/klee/Config/Version.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/klee/Config/Version.h b/include/klee/Config/Version.h
index 53205160..a02ce28b 100644
--- a/include/klee/Config/Version.h
+++ b/include/klee/Config/Version.h
@@ -27,4 +27,10 @@
 #  define KLEE_LLVM_CL_VAL_END , clEnumValEnd
 #endif
 
+#if LLVM_VERSION_CODE >= LLVM_VERSION(5, 0)
+#  define KLEE_LLVM_GOIF_TERMINATOR
+#else
+#  define KLEE_LLVM_GOIF_TERMINATOR , NULL
+#endif
+
 #endif