diff options
| author | Lukas Zaoral <lzaoral@redhat.com> | 2020-09-10 17:14:42 +0200 |
|---|---|---|
| committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2020-12-04 20:35:47 +0000 |
| commit | 30336015ff88298f38841efa1e0dd120e71f2f67 (patch) | |
| tree | 8224e8274443bdb68a2669a4d8f594007870bc7d /lib/Core/StatsTracker.cpp | |
| parent | b398c94c821edd3e8699026dc00501062eafd5b2 (diff) | |
| download | klee-30336015ff88298f38841efa1e0dd120e71f2f67.tar.gz | |
llvm11: Use getCalledOperand instead of getCalledValue
CallBase::getCalledValue has been deprecated by getCalledOperand since LLVM 8 and has been removed in LLVM 11 See: https://reviews.llvm.org/D78882
Diffstat (limited to 'lib/Core/StatsTracker.cpp')
| -rw-r--r-- | lib/Core/StatsTracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Core/StatsTracker.cpp b/lib/Core/StatsTracker.cpp index a94bad9e..93dfcbfe 100644 --- a/lib/Core/StatsTracker.cpp +++ b/lib/Core/StatsTracker.cpp @@ -797,10 +797,11 @@ void StatsTracker::computeReachableUncovered() { if (isa<CallInst>(inst) || isa<InvokeInst>(inst)) { #if LLVM_VERSION_CODE >= LLVM_VERSION(8, 0) const CallBase &cs = cast<CallBase>(*inst); + if (isa<InlineAsm>(cs.getCalledOperand())) { #else const CallSite cs(inst); -#endif if (isa<InlineAsm>(cs.getCalledValue())) { +#endif // We can never call through here so assume no targets // (which should be correct anyhow). callTargets.insert(std::make_pair(inst, |
