diff options
Diffstat (limited to 'lib/Module/IntrinsicCleaner.cpp')
-rw-r--r-- | lib/Module/IntrinsicCleaner.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index 2ac9db62..3729ff82 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -86,12 +86,16 @@ bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b, Module &M) { Value *val = new LoadInst(pSrc, std::string(), ii); new StoreInst(val, pDst, ii); Value *off = ConstantInt::get(Type::getInt64Ty(ctx), 1); - pDst = GetElementPtrInst::Create(pDst, off, std::string(), ii); - pSrc = GetElementPtrInst::Create(pSrc, off, std::string(), ii); + pDst = GetElementPtrInst::Create(KLEE_LLVM_GEP_TYPE(nullptr) + pDst, off, std::string(), ii); + pSrc = GetElementPtrInst::Create(KLEE_LLVM_GEP_TYPE(nullptr) + pSrc, off, std::string(), ii); val = new LoadInst(pSrc, std::string(), ii); new StoreInst(val, pDst, ii); - pDst = GetElementPtrInst::Create(pDst, off, std::string(), ii); - pSrc = GetElementPtrInst::Create(pSrc, off, std::string(), ii); + pDst = GetElementPtrInst::Create(KLEE_LLVM_GEP_TYPE(nullptr) + pDst, off, std::string(), ii); + pSrc = GetElementPtrInst::Create(KLEE_LLVM_GEP_TYPE(nullptr) + pSrc, off, std::string(), ii); val = new LoadInst(pSrc, std::string(), ii); new StoreInst(val, pDst, ii); } |