aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2017-04-27 18:39:08 +0000
committerEli Friedman <efriedma@codeaurora.org>2017-04-27 18:39:08 +0000
commit10ab923b320b5fcdb0b610ea4c3e40e5fd816d7e (patch)
tree8640a7b245d734ba9df7e18f6759299716385d55 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parentf9ea176f0547bc8987348fe80502dd38dcaa3be0 (diff)
downloadllvm-10ab923b320b5fcdb0b610ea4c3e40e5fd816d7e.zip
llvm-10ab923b320b5fcdb0b610ea4c3e40e5fd816d7e.tar.gz
llvm-10ab923b320b5fcdb0b610ea4c3e40e5fd816d7e.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions