about summary refs log tree commit diff
path: root/llvm_mode/afl-llvm-common.cc
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-09-01 19:54:18 +0200
committerhexcoder- <heiko@hexco.de>2020-09-01 19:54:18 +0200
commit6340674a23e9b8d2e8b3a8705be1129363a60d46 (patch)
treea65cc9c9069933317c2a0560e0d5525de5c8785f /llvm_mode/afl-llvm-common.cc
parent4538f689ede6743d097c85ded2fdcb4f9663020b (diff)
parente4a86b40a5504c608d6ba7f44133ab39b24ac6f8 (diff)
downloadafl++-6340674a23e9b8d2e8b3a8705be1129363a60d46.tar.gz
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
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()) {