aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2023-03-15 11:46:44 -0700
committerArthur Eubanks <aeubanks@google.com>2023-03-15 13:29:21 -0700
commit6a6994cc9bc0327aaf8b005c650ff5eb29d2bcce (patch)
tree1c4d394cca6b646def8388dce9627364f8739a91 /clang/lib/CodeGen/BackendUtil.cpp
parent04d20195d6b3747a3cdc882105320b32cb192b8a (diff)
downloadllvm-6a6994cc9bc0327aaf8b005c650ff5eb29d2bcce.zip
llvm-6a6994cc9bc0327aaf8b005c650ff5eb29d2bcce.tar.gz
llvm-6a6994cc9bc0327aaf8b005c650ff5eb29d2bcce.tar.bz2
Reland [StandardInstrumentations] Check function analysis invalidation in module passes as well
See comments for why we now need to pass in the MAM instead of the FAM. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D146160
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 92bef4b..485eb3a 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -837,7 +837,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
TheModule->getContext(),
(CodeGenOpts.DebugPassManager || DebugPassStructure),
/*VerifyEach*/ false, PrintPassOpts);
- SI.registerCallbacks(PIC, &FAM);
+ SI.registerCallbacks(PIC, &MAM);
PassBuilder PB(TM.get(), PTO, PGOOpt, &PIC);
if (CodeGenOpts.EnableAssignmentTracking) {