Skip to content

Commit a5fb4fe

Browse files
harryterkelsenwhesse
authored andcommitted
use const Link so that empty Link is always identical
BUG= [email protected] Review URL: https://codereview.chromium.org/2033873002 .
1 parent 12525ae commit a5fb4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compiler/lib/src/util/link_implementation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class LinkEntry<T> extends Link<T> {
6161
Link<T> tail;
6262

6363
LinkEntry(T this.head, [Link<T> tail])
64-
: this.tail = ((tail == null) ? new Link<T>() : tail);
64+
: this.tail = ((tail == null) ? const Link() : tail);
6565

6666
Link<T> prepend(T element) {
6767
// TODO(ahe): Use new Link<T>, but this cost 8% performance on VM.

0 commit comments

Comments
 (0)