Skip to content
Snippets Groups Projects
Commit cc65d8c1 authored by wlott's avatar wlott
Browse files

In note-rejected-templates, don't note a template if _it's_ note is NIL

instead of the used templates note being NIL.

Also, if the used templates note is NIL, use it's name instead.
parent 8ef8e761
No related branches found
No related tags found
No related merge requests found
......@@ -731,7 +731,7 @@
(dolist (try (function-info-templates (basic-combination-kind call)))
(when (eq try template) (return))
(let ((guard (template-guard try)))
(when (and (template-note template)
(when (and (template-note try)
(or (not guard) (funcall guard))
(or (not safe-p)
(policy-safe-p (template-policy try)))
......@@ -768,7 +768,8 @@
(compiler-note "~{~?~^~&~6T~}"
(if template
`("Forced to do ~A (cost ~D)."
(,(template-note template)
(,(or (template-note template)
(template-name template))
,(template-cost template))
. ,(messages))
`("Forced to do full call."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment