commit | 9dc569fec52c4d057f2287d08ed46be34e8519ee | [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 | af3176509b86ea1fea470d9b7032458393f80b72 | |
parent | 913d272566cfbd50696e47a2620af8e1a9db4cdb [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301575 91177308-0d34-0410-b5e6-96231b3b80d8