[llvm] a52ac7f - Fix uninitialized field post PR #74970

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 10 18:39:01 PST 2023


Author: Mircea Trofin
Date: 2023-12-10T18:38:47-08:00
New Revision: a52ac7f93a31c664d8943242bdafd719d38f2ffa

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

LOG: Fix uninitialized field post PR #74970

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h b/llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
index 89fa08685692b..95eb3019eab00 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
@@ -33,7 +33,7 @@ using LoadStorePair = std::pair<Instruction *, Instruction *>;
 /// instrumentation pass.
 class InstrProfilingLoweringPass
     : public PassInfoMixin<InstrProfilingLoweringPass> {
-  const InstrProfOptions Options;
+  const InstrProfOptions Options = {};
   // Is this lowering for the context-sensitive instrumentation.
   const bool IsCS = false;
 


        


More information about the llvm-commits mailing list