aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2020-09-02 08:46:53 +0200
committerDavid Stenberg <david.stenberg@ericsson.com>2020-09-02 15:00:45 +0200
commit6d36b22b219f663b9b8317147ea8f7a9cb4e18dc (patch)
treef64faa5d1c0fffcf1151610fb7e4b0ffff7a9334 /clang/lib/Frontend/CompilerInvocation.cpp
parentf5ed22f09dd95c879b57a11c42d2fa7f5ef5e72d (diff)
downloadllvm-6d36b22b219f663b9b8317147ea8f7a9cb4e18dc.zip
llvm-6d36b22b219f663b9b8317147ea8f7a9cb4e18dc.tar.gz
llvm-6d36b22b219f663b9b8317147ea8f7a9cb4e18dc.tar.bz2
[GlobalOpt] Fix an incorrect Modified status
When marking a global variable constant, and simplifying users using CleanupConstantGlobalUsers(), the pass could incorrectly return false if there were still some uses left, and no further optimizations was done. This was caught using the check introduced by D80916. This fixes PR46749. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D85837
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions