diff options
author | Lukas Zaoral <lzaoral@redhat.com> | 2021-08-24 13:59:33 +0200 |
---|---|---|
committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2021-12-20 14:36:51 +0000 |
commit | 10b04f379ee275223f4412cd86d18401de4cdf02 (patch) | |
tree | 08d284e6d81c44b6a033774a525199e20113c55e /lib/Expr | |
parent | 49935def640a19b6dccf69c33be65d3798ea218a (diff) | |
download | klee-10b04f379ee275223f4412cd86d18401de4cdf02.tar.gz |
llvm13: llvm::APInt::toString has been moved to StringExtras.h
See: https://reviews.llvm.org/D103888
Diffstat (limited to 'lib/Expr')
-rw-r--r-- | lib/Expr/Expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index db05e842..2b9eab0d 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -17,6 +17,9 @@ #include "klee/Support/IntEvaluation.h" #include "llvm/ADT/Hashing.h" +#if LLVM_VERSION_CODE >= LLVM_VERSION(13, 0) +#include "llvm/ADT/StringExtras.h" +#endif #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" @@ -366,7 +369,11 @@ void ConstantExpr::toMemory(void *address) { } void ConstantExpr::toString(std::string &Res, unsigned radix) const { +#if LLVM_VERSION_CODE >= LLVM_VERSION(13, 0) + Res = llvm::toString(value, radix, false); +#else Res = value.toString(radix, false); +#endif } ref<ConstantExpr> ConstantExpr::Concat(const ref<ConstantExpr> &RHS) { |