[llvm] 5d21ee4 - MemProfilerPass::run - remove (dead) duplicate return. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 20 04:37:20 PDT 2021


Author: Simon Pilgrim
Date: 2021-08-20T12:36:28+01:00
New Revision: 5d21ee4224d7e4b7c96cc6324414354a4e2691c6

URL: https://github.com/llvm/llvm-project/commit/5d21ee4224d7e4b7c96cc6324414354a4e2691c6
DIFF: https://github.com/llvm/llvm-project/commit/5d21ee4224d7e4b7c96cc6324414354a4e2691c6.diff

LOG: MemProfilerPass::run - remove (dead) duplicate return. NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index 0e6a404a9e0b..610a76d14262 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -255,8 +255,6 @@ PreservedAnalyses MemProfilerPass::run(Function &F,
   if (Profiler.instrumentFunction(F))
     return PreservedAnalyses::none();
   return PreservedAnalyses::all();
-
-  return PreservedAnalyses::all();
 }
 
 ModuleMemProfilerPass::ModuleMemProfilerPass() {}


        


More information about the llvm-commits mailing list