about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-common.cc
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-31 12:26:41 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-31 12:26:41 +0200
commit4697e4a5a519043b5727202c39a5e13c277e1cae (patch)
tree5efe49aa07c4b4aaf8604db88905bdd688f9859c /llvm_mode/afl-llvm-common.cc
parent92b1f9cf36e7df8ce4b957e503cffca7296da048 (diff)
parentbbf00204eacfd0444257e81397f2e76ab90be41d (diff)
downloadafl++-4697e4a5a519043b5727202c39a5e13c277e1cae.tar.gz
description for AFL_MAX_DET_EXTRAS added
Diffstat (limited to 'llvm_mode/afl-llvm-common.cc')
-rw-r--r--llvm_mode/afl-llvm-common.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm_mode/afl-llvm-common.cc b/llvm_mode/afl-llvm-common.cc
index 59ad65c9..189b4ec6 100644
--- a/llvm_mode/afl-llvm-common.cc
+++ b/llvm_mode/afl-llvm-common.cc
@@ -344,13 +344,10 @@ static std::string getSourceName(llvm::Function *F) {
     (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 7)
   if (Loc) {
 
+    StringRef   instFilename;
     DILocation *cDILoc = dyn_cast<DILocation>(Loc.getAsMDNode());
 
-    if (!cDILoc) {
-      FATAL("DebugLoc is no DILocation");
-    }
-
-    StringRef instFilename = cDILoc->getFilename();
+    if (cDILoc) { instFilename = cDILoc->getFilename(); }
 
     if (instFilename.str().empty()) {