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/ExtractGV.cpp | |
parent | e82c286fba51ffabd4979cedb3a3b2c9b02ec0f4 (diff) | |
download | llvm-1732340bfa11a27619e816c8b689d352392b8dce.zip llvm-1732340bfa11a27619e816c8b689d352392b8dce.tar.gz llvm-1732340bfa11a27619e816c8b689d352392b8dce.tar.bz2 |
IPO: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250187
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractGV.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractGV.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractGV.cpp b/llvm/lib/Transforms/IPO/ExtractGV.cpp index b9462f2..1a3b925 100644 --- a/llvm/lib/Transforms/IPO/ExtractGV.cpp +++ b/llvm/lib/Transforms/IPO/ExtractGV.cpp @@ -83,7 +83,7 @@ namespace { for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I) { bool Delete = - deleteStuff == (bool)Named.count(I) && !I->isDeclaration(); + deleteStuff == (bool)Named.count(&*I) && !I->isDeclaration(); if (!Delete) { if (I->hasAvailableExternallyLinkage()) continue; @@ -103,7 +103,7 @@ namespace { // Visit the Functions. for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { bool Delete = - deleteStuff == (bool)Named.count(I) && !I->isDeclaration(); + deleteStuff == (bool)Named.count(&*I) && !I->isDeclaration(); if (!Delete) { if (I->hasAvailableExternallyLinkage()) continue; @@ -124,7 +124,7 @@ namespace { Module::alias_iterator CurI = I; ++I; - bool Delete = deleteStuff == (bool)Named.count(CurI); + bool Delete = deleteStuff == (bool)Named.count(&*CurI); makeVisible(*CurI, Delete); if (Delete) { @@ -143,7 +143,7 @@ namespace { } CurI->replaceAllUsesWith(Declaration); - delete CurI; + delete &*CurI; } } |