diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2017-06-15 15:20:49 +0200 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-05-24 14:08:27 +0100 |
commit | 9388395c21e512796b39baca81324ffb7b70de60 (patch) | |
tree | 1717fb5bbe172782130e52c0300fb45b26848100 /lib/Core | |
parent | 15d0d924d74f86457f9462a83c414067b6bfed2a (diff) | |
download | klee-9388395c21e512796b39baca81324ffb7b70de60.tar.gz |
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 <jirislaby@gmail.com>
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index 70c14050..72b866cf 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -326,6 +326,7 @@ Function *ExternalDispatcherImpl::createDispatcher(Function *target, Type *argTy = (i < FTy->getNumParams() ? FTy->getParamType(i) : (*ai)->getType()); Instruction *argI64p = GetElementPtrInst::Create( + KLEE_LLVM_GEP_TYPE(nullptr) argI64s, ConstantInt::get(Type::getInt32Ty(ctx), idx), "", dBB); Instruction *argp = |