AsmParser: Remove implicit ilist iterator conversions, NFC

llvm-svn: 250791
This commit is contained in:
Duncan P. N. Exon Smith 2015-10-20 01:12:49 +00:00
parent a2c90e4743
commit ac331fbdb6
1 changed files with 4 additions and 5 deletions

View File

@ -185,7 +185,7 @@ bool LLParser::ValidateEndOfModule() {
// Look for intrinsic functions and CallInst that need to be upgraded
for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; )
UpgradeCallsToIntrinsic(FI++); // must be post-increment, as we remove
UpgradeCallsToIntrinsic(&*FI++); // must be post-increment, as we remove
UpgradeDebugInfo(*M);
@ -2263,10 +2263,9 @@ LLParser::PerFunctionState::PerFunctionState(LLParser &p, Function &f,
: P(p), F(f), FunctionNumber(functionNumber) {
// Insert unnamed arguments into the NumberedVals list.
for (Function::arg_iterator AI = F.arg_begin(), E = F.arg_end();
AI != E; ++AI)
if (!AI->hasName())
NumberedVals.push_back(AI);
for (Argument &A : F.args())
if (!A.hasName())
NumberedVals.push_back(&A);
}
LLParser::PerFunctionState::~PerFunctionState() {