Skip to content

Commit 29336b9

Browse files
alexmalyshevmeta-codesync[bot]
authored andcommitted
Fix warning about possibly returning with no value
Summary: GCC is stricter than Clang here with warnings. Be safe and JIT_ABORT if a bad value ever comes in here. Should never be hit but it silences the warning. Reviewed By: jbower-fb Differential Revision: D96021940 fbshipit-source-id: a4ec0ad9765347b4f843d10669d3311d82b64ef8
1 parent 802c50d commit 29336b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cinderx/Jit/deopt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ bool shouldResumeInterpreterInErrorHandler(DeoptReason reason) {
308308
case jit::DeoptReason::kUnhandledNullField:
309309
case jit::DeoptReason::kRaiseStatic:
310310
return true;
311+
default:
312+
JIT_ABORT("Unrecognized deopt reason {}", static_cast<int>(reason));
311313
}
312314
}
313315

0 commit comments

Comments
 (0)