forked from OSchip/llvm-project
Fix wasm build after arg_begin iterator type change
llvm-svn: 298106
This commit is contained in:
parent
56d028d974
commit
98e56430b9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue