Skip to content

Commit 2a9ae65

Browse files
committed
Use key from AnalysisInfoMixin
1 parent 35254af commit 2a9ae65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/IR/PassManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ struct AnalysisInfoMixin : PassInfoMixin<DerivedT> {
9898
static AnalysisKey *ID() {
9999
static_assert(std::is_base_of<AnalysisInfoMixin, DerivedT>::value,
100100
"Must pass the derived type as the template argument!");
101-
return &DerivedT::Key;
101+
return &Key;
102102
}
103103

104104
private:
105105
/// Opaque, unique ID for this analysis type.
106-
static constexpr AnalysisKey Key = {};
106+
static inline AnalysisKey Key = {};
107107
};
108108

109109
namespace detail {

0 commit comments

Comments
 (0)