[llvm] cde4027 - [FunctionAttrs] Add missing pass dependency

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 01:15:56 PDT 2022


Author: Nikita Popov
Date: 2022-06-27T10:15:06+02:00
New Revision: cde402778a429b5c349d8b61fae5fc7398d24325

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

LOG: [FunctionAttrs] Add missing pass dependency

This pass depends on AAResults. This fixes the ocaml IPO binding
tests.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/FunctionAttrs.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 769cad60c06d..49077f92884f 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1935,6 +1935,7 @@ struct PostOrderFunctionAttrsLegacyPass : public CallGraphSCCPass {
 char PostOrderFunctionAttrsLegacyPass::ID = 0;
 INITIALIZE_PASS_BEGIN(PostOrderFunctionAttrsLegacyPass, "function-attrs",
                       "Deduce function attributes", false, false)
+INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
 INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
 INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass)
 INITIALIZE_PASS_END(PostOrderFunctionAttrsLegacyPass, "function-attrs",


        


More information about the llvm-commits mailing list