projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f796c7
)
ConstantMerge: update MadeChange when change is made
author
JF Bastien
<jfbastien@apple.com>
Thu, 9 Aug 2018 21:36:57 +0000
(21:36 +0000)
committer
JF Bastien
<jfbastien@apple.com>
Thu, 9 Aug 2018 21:36:57 +0000
(21:36 +0000)
It was always false, which is obviously wrong.
llvm-svn: 339390
llvm/lib/Transforms/IPO/ConstantMerge.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index a6cfbb26e796ca18807675070a0fcce77d4d3a0d..d2721c92b33327fcddae75e0042d51814e8f8a05 100644
(file)
--- 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();