summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 18:26:00 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-13 18:26:00 +0000
commit3a9c9e3dcd8ae1c658b6a3361bd159b6ae8cee25 (patch)
treebdcd9d6767c435613b4d4968c36e434cd6874cff /llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
parent4977f4261e1d74aa457d08952dcf339c8f487dfb (diff)
downloadbcm5719-llvm-3a9c9e3dcd8ae1c658b6a3361bd159b6ae8cee25.tar.gz
bcm5719-llvm-3a9c9e3dcd8ae1c658b6a3361bd159b6ae8cee25.zip
Scalar: Remove some implicit ilist iterator conversions, NFC
Remove some of the implicit ilist iterator conversions in LLVMScalarOpts. More to go. llvm-svn: 250197
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantHoisting.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ConstantHoisting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
index af3edcf7228..84f7f5fff5b 100644
--- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
@@ -365,9 +365,9 @@ void ConstantHoisting::collectConstantCandidates(ConstCandMapType &ConstCandMap,
/// into an instruction itself.
void ConstantHoisting::collectConstantCandidates(Function &Fn) {
ConstCandMapType ConstCandMap;
- for (Function::iterator BB : Fn)
- for (BasicBlock::iterator Inst : *BB)
- collectConstantCandidates(ConstCandMap, Inst);
+ for (BasicBlock &BB : Fn)
+ for (Instruction &Inst : BB)
+ collectConstantCandidates(ConstCandMap, &Inst);
}
/// \brief Find the base constant within the given range and rebase all other
OpenPOWER on IntegriCloud