Skip to content

Commit

Permalink
Fix compiler warning in BigIntPrimitive::raiseOnError
Browse files Browse the repository at this point in the history
Summary:
GCC complains that "control reaches end of non-void function" in this
function. Add an `llvm_unreachable` to silence it.

Differential Revision: D37859086

fbshipit-source-id: 1a9b4c8424fb8f04cd9cd437d371404dc9207a3f
  • Loading branch information
neildhar authored and facebook-github-bot committed Jul 14, 2022
1 parent 3235cdf commit da269a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/hermes/VM/BigIntPrimitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ class BigIntPrimitive final
case bigint::OperationStatus::NEGATIVE_EXPONENT:
return runtime.raiseRangeError("Exponent must be positive");
}
llvm_unreachable("No other OperationStatus.");
}

template <typename BigIntRefTy>
Expand Down

0 comments on commit da269a3

Please sign in to comment.