diff options
-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) { |