[llvm] d95cb56 - [Attributor] Make sure abstract attributes are properly initialized
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 20 00:52:58 PST 2020
Author: Johannes Doerfert
Date: 2020-02-20T02:46:40-06:00
New Revision: d95cb56649e8493cc1a7e9e20875e464e185f84f
URL: https://github.com/llvm/llvm-project/commit/d95cb56649e8493cc1a7e9e20875e464e185f84f
DIFF: https://github.com/llvm/llvm-project/commit/d95cb56649e8493cc1a7e9e20875e464e185f84f.diff
LOG: [Attributor] Make sure abstract attributes are properly initialized
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index aeae4c08773f..13a5191ff802 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -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 =
More information about the llvm-commits
mailing list