Fix wasm build after arg_begin iterator type change

llvm-svn: 298106
This commit is contained in:
Reid Kleckner 2017-03-17 17:24:03 +00:00
parent 56d028d974
commit 98e56430b9
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ void WebAssemblyLowerEmscriptenEHSjLj::createSetThrewFunction(Module &M) {
Function *F =
Function::Create(FTy, GlobalValue::ExternalLinkage, SetThrewFName, &M);
Argument *Arg1 = &*(F->arg_begin());
Argument *Arg2 = &*(++F->arg_begin());
Argument *Arg2 = &*std::next(F->arg_begin());
Arg1->setName("threw");
Arg2->setName("value");
BasicBlock *EntryBB = BasicBlock::Create(C, "entry", F);