diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-13 17:51:03 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-13 17:51:03 +0000 |
| commit | 1732340bfa11a27619e816c8b689d352392b8dce (patch) | |
| tree | 5323f02d3cc992de1cc20d6952e10a826b0f70c9 /llvm/lib/Transforms/IPO/ConstantMerge.cpp | |
| parent | e82c286fba51ffabd4979cedb3a3b2c9b02ec0f4 (diff) | |
| download | bcm5719-llvm-1732340bfa11a27619e816c8b689d352392b8dce.tar.gz bcm5719-llvm-1732340bfa11a27619e816c8b689d352392b8dce.zip | |
IPO: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250187
Diffstat (limited to 'llvm/lib/Transforms/IPO/ConstantMerge.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/ConstantMerge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp index 8ce7646621f..0aa49d6fde0 100644 --- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp +++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp @@ -119,7 +119,7 @@ bool ConstantMerge::runOnModule(Module &M) { // First: Find the canonical constants others will be merged with. for (Module::global_iterator GVI = M.global_begin(), E = M.global_end(); GVI != E; ) { - GlobalVariable *GV = GVI++; + GlobalVariable *GV = &*GVI++; // If this GV is dead, remove it. GV->removeDeadConstantUsers(); @@ -160,7 +160,7 @@ bool ConstantMerge::runOnModule(Module &M) { // invalidating the Constant* pointers in CMap. for (Module::global_iterator GVI = M.global_begin(), E = M.global_end(); GVI != E; ) { - GlobalVariable *GV = GVI++; + GlobalVariable *GV = &*GVI++; // Only process constants with initializers in the default address space. if (!GV->isConstant() || !GV->hasDefinitiveInitializer() || |

