[Attributor] Make sure abstract attributes are properly initialized
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 20 Feb 2020 08:03:32 +0000 (02:03 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 20 Feb 2020 08:46:40 +0000 (02:46 -0600)
llvm/lib/Transforms/IPO/Attributor.cpp

index aeae4c0..13a5191 100644 (file)
@@ -836,6 +836,11 @@ struct AAComposeTwoGenericDeduction
   AAComposeTwoGenericDeduction(const IRPosition &IRP)
       : F<AAType, G<AAType, Base, StateType>, StateType>(IRP) {}
 
+  void initialize(Attributor &A) override {
+    F<AAType, G<AAType, Base, StateType>, StateType>::initialize(A);
+    G<AAType, Base, StateType>::initialize(A);
+  }
+
   /// See AbstractAttribute::updateImpl(...).
   ChangeStatus updateImpl(Attributor &A) override {
     ChangeStatus ChangedF =