diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2023-10-30 14:52:37 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2024-02-08 13:17:19 +0000 |
commit | e9774bb6d569f55f662e12e2f491d30e7cea8372 (patch) | |
tree | 4c7a6838b329810d62823b76072495e0df3da35f /include | |
parent | 5409532fa8e41143cc511068b2061c49aa2bde69 (diff) | |
download | klee-e9774bb6d569f55f662e12e2f491d30e7cea8372.tar.gz |
Use APIs of newer LLVM versions instead of unsupported ones
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Expr/Expr.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/klee/Expr/Expr.h b/include/klee/Expr/Expr.h index 15075eb8..eb936c3d 100644 --- a/include/klee/Expr/Expr.h +++ b/include/klee/Expr/Expr.h @@ -1117,7 +1117,13 @@ public: } /// isAllOnes - Is this constant all ones. - bool isAllOnes() const { return getAPValue().isAllOnesValue(); } + bool isAllOnes() const { +#if LLVM_VERSION_CODE <= LLVM_VERSION(13, 0) + return getAPValue().isAllOnesValue(); +#else + return getAPValue().isAllOnes(); +#endif + } /* Constant Operations */ |