[llvm] [WPD] set the branch funnel function entry count (PR #155657)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 18:56:20 PDT 2025


================
@@ -1453,7 +1458,7 @@ void DevirtModule::tryICallBranchFunnel(
 
   FunctionType *FT =
       FunctionType::get(Type::getVoidTy(M.getContext()), {Int8PtrTy}, true);
-  Function *JT;
+  Function *JT = nullptr;
----------------
mtrofin wrote:

it is a drive-by. Right now, no, because JT gets initialized below, but should that change later, initializing at declaration avoids risk of UB.

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


More information about the llvm-commits mailing list