commit | 30674246ef60ab74566a21f362a7de7a09b99955 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Jun 29 11:30:43 2020 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jun 29 21:28:19 2020 +0000 |
tree | 9439c2e9183e0155d5bca2b00044af701dca046b | |
parent | 43f83e9e4a96eeefc32079829cad3184664dba55 [diff] |
compiler: remove some erroneous code that was never run The code accidentally called Type::type_descriptor rather than the do_type_descriptor method. Calling Type::type_descriptor with a second argument of NULL would always crash. Since that never happened, it revealed that this code was never actually executed. Fixes https://gcc.gnu.org/PR95970 Change-Id: I76a5c2780f36425aadcb153250d4943a63c831f5 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/240477 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>