Skip to content

Commit

Permalink
Clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chiang <[email protected]>
  • Loading branch information
harry900831 committed Aug 29, 2023
1 parent ad1fd3c commit 5c77177
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/validator/formchecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ Expect<void> FormChecker::checkInstr(const AST::Instruction &Instr) {
auto [TryCnt, CatchCnt] = countCtrlStackType(*D + 1);
auto &NonConstInstr = const_cast<AST::Instruction &>(Instr);
if (*D + 1 < CtrlStack.size()) {
NonConstInstr.setTryBlockVSize(static_cast<uint32_t>(Locals.size() +
CtrlStack[*D + 1].Height));
NonConstInstr.setTryBlockVSize(
static_cast<uint32_t>(Locals.size() + CtrlStack[*D + 1].Height));
} else {
NonConstInstr.setTryBlockVSize(static_cast<uint32_t>(Locals.size() +
ValStack.size()));
NonConstInstr.setTryBlockVSize(
static_cast<uint32_t>(Locals.size() + ValStack.size()));
}
// The try block itself may push an additional handler to stack
NonConstInstr.setTryBlockHOffset(TryCnt);
Expand Down

0 comments on commit 5c77177

Please sign in to comment.