We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AnalysisInfoMixin
1 parent 35254af commit 2a9ae65Copy full SHA for 2a9ae65
llvm/include/llvm/IR/PassManager.h
@@ -98,12 +98,12 @@ struct AnalysisInfoMixin : PassInfoMixin<DerivedT> {
98
static AnalysisKey *ID() {
99
static_assert(std::is_base_of<AnalysisInfoMixin, DerivedT>::value,
100
"Must pass the derived type as the template argument!");
101
- return &DerivedT::Key;
+ return &Key;
102
}
103
104
private:
105
/// Opaque, unique ID for this analysis type.
106
- static constexpr AnalysisKey Key = {};
+ static inline AnalysisKey Key = {};
107
};
108
109
namespace detail {
0 commit comments