commit | c1786cfbf14fb002464970093ba417566a9487d4 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Wed Dec 17 09:45:05 2014 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Sep 03 12:31:55 2020 -0700 |
tree | b60279c5804219d6841f445aae9b89d9a690d067 | |
parent | 2ab205105cddf698aeda77268b1048370b845841 [diff] |
irgen: fix canAvoid* Patch by Andrew Wilkins! canAvoidElementLoad and canAvoidLoad were incorrectly eliding loads when an index expression is used as an another array index expression. This led to a panic. See comments on https://github.com/go-llvm/llgo/issues/175 Test Plan: lit test added Differential Revision: http://reviews.llvm.org/D6676 llvm-svn: 224420 GitOrigin-RevId: 1f89ffdf4db9fa28463ee70bab08d83eb496a31b