[llvm] [Instrumentation] Remove a redundant control flow statement (NFC) (PR #165510)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 22:13:04 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/165510.diff


1 Files Affected:

- (modified) llvm/lib/Transforms/Instrumentation/MemProfUse.cpp (-1) 


``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp b/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
index a6ec6c1207767..2f256dfd7b0e2 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
@@ -216,7 +216,6 @@ static void HandleUnsupportedAnnotationKinds(GlobalVariable &GVar,
   }
   LLVM_DEBUG(dbgs() << "Skip annotation for " << GVar.getName() << " due to "
                     << Reason << ".\n");
-  return;
 }
 
 struct AllocMatchInfo {

``````````

</details>


https://github.com/llvm/llvm-project/pull/165510


More information about the llvm-commits mailing list