[llvm] [IR] Remove a redundant control flow statement (NFC) (PR #144100)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 13 08:38:45 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144100

None

>From 0ecf1a637a9319a4e2c0a29556e6896dd3b5e86a Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 12 Jun 2025 18:59:22 -0700
Subject: [PATCH] [IR] Remove a redundant control flow statement (NFC)

---
 llvm/lib/IR/DebugInfo.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 9527c3e0b5d67..e6b1f76dfacf6 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -2127,7 +2127,6 @@ static void emitDbgAssign(AssignmentInfo Info, Value *Val, Value *Dest,
       &StoreLikeInst, Val, VarRec.Var, Expr, Dest, AddrExpr, VarRec.DL);
   (void)Assign;
   LLVM_DEBUG(if (Assign) errs() << " > INSERT: " << *Assign << "\n");
-  return;
 }
 
 #undef DEBUG_TYPE // Silence redefinition warning (from ConstantsContext.h).



More information about the llvm-commits mailing list