diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2018-01-15 10:09:20 +0100 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-10-26 13:31:07 +0100 |
commit | ad0237344606928b2600182986095320b61634fb (patch) | |
tree | 7cd6fe5f9348411f2054928916cfd69936b2e9db | |
parent | 6f5537fc9080c03bc1c9f7e8e0d6bb93c5b03e2d (diff) | |
download | klee-ad0237344606928b2600182986095320b61634fb.tar.gz |
llvm5: integerPartWidth is from llvm::APFloatBase
Otherwise we see: ../lib/Expr/Expr.cpp:331:14: error: no member named 'integerPartWidth' in namespace 'llvm'; did you mean 'llvm::APFloatBase::integerPartWidth'? Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
-rw-r--r-- | lib/Expr/Expr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index a5c7f652..65e858c3 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -333,7 +333,11 @@ ref<Expr> ConstantExpr::fromMemory(void *address, Width 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)); } } |