| commit | 10ab923b320b5fcdb0b610ea4c3e40e5fd816d7e | [log] [tgz] |
|---|---|---|
| author | Eli Friedman <efriedma@codeaurora.org> | Thu Apr 27 18:39:08 2017 +0000 |
| committer | Eli Friedman <efriedma@codeaurora.org> | Thu Apr 27 18:39:08 2017 +0000 |
| tree | 8640a7b245d734ba9df7e18f6759299716385d55 | |
| parent | f9ea176f0547bc8987348fe80502dd38dcaa3be0 [diff] |
[GlobalOpt] Correctly update metadata when localizing a global. Just calling dropAllReferences leaves pointers to the ConstantExpr behind, so we would eventually crash with a null pointer dereference. Differential Revision: https://reviews.llvm.org/D32551 llvm-svn: 301575