Make contract profiler's path shortening more robust.

This commit is contained in:
Vincent St-Amour 2014-11-25 17:43:27 -05:00
parent 6e473958de
commit 52f33231fa

View File

@ -151,7 +151,7 @@
(define table
(for/hash ([p srcs]
[e extracted])
(values p (hash-ref shortened e))))
(values p (hash-ref shortened e (lambda () p)))))
(lambda (p)
(define target (hash-ref table p #f))
(if target