File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def elabAttr [Monad m] [MonadEnv m] [MonadResolveName m] [MonadError m] [MonadMa
5858 let .ok _impl := getAttributeImpl (← getEnv) attrName
5959 | throwError "Unknown attribute `[{attrName}]`"
6060 if let .ok impl := getAttributeImpl (← getEnv) attrName then
61- if isIOUnitRegularInitFn (← getEnv) impl.ref then -- skip `builtin_initialize` attributes
61+ if regularInitAttr.getParam? (← getEnv) impl.ref |>.isSome then -- skip `builtin_initialize` attributes
6262 recordExtraModUseFromDecl (isMeta := true ) impl.ref
6363 /- The `AttrM` does not have sufficient information for expanding macros in `args`.
6464 So, we expand them before here before we invoke the attributer handlers implemented using `AttrM`. -/
You can’t perform that action at this time.
0 commit comments