about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-common.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-31 10:57:01 +0200
committervan Hauser <vh@thc.org>2020-08-31 10:57:01 +0200
commit4566bcf122c251c023abce0683666921bd4df755 (patch)
tree2c8897ddf6d7e3b883e539dd49cddd9b00fd48de /llvm_mode/afl-llvm-common.cc
parentca0105ddf6bd3c28a7ea4f9a963f820b1eb55ac6 (diff)
downloadafl++-4566bcf122c251c023abce0683666921bd4df755.tar.gz
code-format
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()) {