about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-common.cc
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-08-31 20:34:28 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-08-31 20:34:28 +0200
commit8ca4414d70df515b504beefddcc3ad3615a4216a (patch)
treeca8a552d322f4b2d79a9feff01f870e891813207 /llvm_mode/afl-llvm-common.cc
parent6090bb1bca81229a4c6ae178e1cef0e35bd31a96 (diff)
parenta552631d3b04da880f18a25860169ac4ccd8f85b (diff)
downloadafl++-8ca4414d70df515b504beefddcc3ad3615a4216a.tar.gz
merge conflicts
Diffstat (limited to 'llvm_mode/afl-llvm-common.cc')
-rw-r--r--llvm_mode/afl-llvm-common.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm_mode/afl-llvm-common.cc b/llvm_mode/afl-llvm-common.cc
index 7dd5a02a..189b4ec6 100644
--- a/llvm_mode/afl-llvm-common.cc
+++ b/llvm_mode/afl-llvm-common.cc
@@ -344,14 +344,10 @@ static std::string getSourceName(llvm::Function *F) {
     (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 7)
   if (Loc) {
 
-    StringRef instFilename;
+    StringRef   instFilename;
     DILocation *cDILoc = dyn_cast<DILocation>(Loc.getAsMDNode());
 
-    if (cDILoc) {
-
-      instFilename = cDILoc->getFilename();
-
-    }
+    if (cDILoc) { instFilename = cDILoc->getFilename(); }
 
     if (instFilename.str().empty()) {