summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2018-08-09 21:36:57 +0000
committerJF Bastien <jfbastien@apple.com>2018-08-09 21:36:57 +0000
commitebcaa31768c563782a6a2acee052450cb6497abe (patch)
tree7abfd32a22cf3c0a4702baecb03cf598c938af4e /llvm/lib/Transforms
parent7f796c787f8d0c394fd7d56add07deb0faf46b9f (diff)
downloadbcm5719-llvm-ebcaa31768c563782a6a2acee052450cb6497abe.tar.gz
bcm5719-llvm-ebcaa31768c563782a6a2acee052450cb6497abe.zip
ConstantMerge: update MadeChange when change is made
It was always false, which is obviously wrong. llvm-svn: 339390
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/ConstantMerge.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index a6cfbb26e79..d2721c92b33 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -220,6 +220,7 @@ static bool mergeConstants(Module &M) {
assert(Replacements[i].first->hasLocalLinkage() &&
"Refusing to delete an externally visible global variable.");
Replacements[i].first->eraseFromParent();
+ MadeChange = true;
}
NumMerged += Replacements.size();
OpenPOWER on IntegriCloud