Skip to content

Commit 9d15e80

Browse files
committed
Merge remote-tracking branch 'myself/irb.locals' into irb.locals
2 parents 9f16436 + 2d2c11b commit 9d15e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm/wasm-ir-builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ Result<> IRBuilder::makeLocalSet(Index local) {
14241424
return Err{"local.set is only valid in a function context"};
14251425
}
14261426
if (local >= func->getNumLocals()) {
1427-
return Err{"invalid local.get index"};
1427+
return Err{"invalid local.set index"};
14281428
}
14291429
LocalSet curr;
14301430
curr.index = local;
@@ -1438,7 +1438,7 @@ Result<> IRBuilder::makeLocalTee(Index local) {
14381438
return Err{"local.tee is only valid in a function context"};
14391439
}
14401440
if (local >= func->getNumLocals()) {
1441-
return Err{"invalid local.get index"};
1441+
return Err{"invalid local.tee index"};
14421442
}
14431443
LocalSet curr;
14441444
curr.index = local;

0 commit comments

Comments
 (0)