about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorAndrea Mattavelli <andreamattavelli@users.noreply.github.com>2017-02-21 22:23:52 +0000
committerGitHub <noreply@github.com>2017-02-21 22:23:52 +0000
commit62ee2e574b9f920e6679c91da25f8941552277d9 (patch)
treeb476d2df666340ad26f63d8fd3c4e07b2a248f11 /include
parent27f414cc48bf086552ee4cba7784354c162a8301 (diff)
parent70715151746a24c4c6919292956111b00fcd3a26 (diff)
downloadklee-62ee2e574b9f920e6679c91da25f8941552277d9.tar.gz
Merge pull request #514 from delcypher/fix_klee_get_direct_call_bitcast_weak_alias
Fix assertion failure when klee::getDirectCallTarget() is used on call to bitcasted weak alias
Diffstat (limited to 'include')
-rw-r--r--include/klee/Internal/Support/ModuleUtil.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/klee/Internal/Support/ModuleUtil.h b/include/klee/Internal/Support/ModuleUtil.h
index 29adc94a..c85ba591 100644
--- a/include/klee/Internal/Support/ModuleUtil.h
+++ b/include/klee/Internal/Support/ModuleUtil.h
@@ -29,7 +29,11 @@ namespace klee {
   /// null if it cannot be determined (should be only for indirect
   /// calls, although complicated constant expressions might be
   /// another possibility).
-  llvm::Function *getDirectCallTarget(llvm::CallSite);
+  ///
+  /// If `moduleIsFullyLinked` is set to true it will be assumed that the
+  //  module containing the `llvm::CallSite` is fully linked. This assumption
+  //  allows resolution of functions that are marked as overridable.
+  llvm::Function *getDirectCallTarget(llvm::CallSite, bool moduleIsFullyLinked);
 
   /// Return true iff the given Function value is used in something
   /// other than a direct call (or a constant expression that