From 2ef1a91bee166430ce732ac95e1258d8eb7ce01d Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 13 Mar 2025 21:02:17 -0700 Subject: [PATCH] [ctxprof] Fix initializer in PGOCtxProfLowering It needs to match the structure of `FunctionData` in compiler-rt, but missed a field in PR #130655. --- llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp b/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp index ffc2aec77ff91..9f2b2d6212a8e 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp @@ -124,6 +124,7 @@ CtxInstrumentationLowerer::CtxInstrumentationLowerer(Module &M, }); FunctionDataTy = StructType::get(M.getContext(), { + PointerTy, /*Next*/ PointerTy, /*FlatCtx*/ SanitizerMutexType, /*Mutex*/ });