diff options
author | Frank Busse <bb0xfb@gmail.com> | 2021-12-15 16:20:29 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2022-03-17 22:59:26 +0000 |
commit | d8553f3cec042b5af9e21c268cb14ee8f7b30083 (patch) | |
tree | d8545f09d6ae508df5a8d19ad30b6dbd6f1e4182 /lib/Expr/Expr.cpp | |
parent | 8cab09eb98d06d488e036ceec9f4b16090502297 (diff) | |
download | klee-d8553f3cec042b5af9e21c268cb14ee8f7b30083.tar.gz |
remove LLVM < 6 from sources
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r-- | lib/Expr/Expr.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 2b9eab0d..50020fb1 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -343,13 +343,11 @@ ref<Expr> ConstantExpr::fromMemory(void *address, Width width) { case Expr::Int64: return ConstantExpr::create(*((uint64_t*) address), width); // FIXME: what about machines without x87 support? default: - return ConstantExpr::alloc(llvm::APInt(width, -#if LLVM_VERSION_CODE >= LLVM_VERSION(5, 0) - (width+llvm::APFloatBase::integerPartWidth-1)/llvm::APFloatBase::integerPartWidth, -#else - (width+llvm::integerPartWidth-1)/llvm::integerPartWidth, -#endif - (const uint64_t*)address)); + return ConstantExpr::alloc( + llvm::APInt(width, + (width + llvm::APFloatBase::integerPartWidth - 1) / + llvm::APFloatBase::integerPartWidth, + (const uint64_t *)address)); } } |