summaryrefslogtreecommitdiff
path: root/src/support/bits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/bits.cpp')
-rw-r--r--src/support/bits.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/support/bits.cpp b/src/support/bits.cpp
index c237807ee..2489a0249 100644
--- a/src/support/bits.cpp
+++ b/src/support/bits.cpp
@@ -17,6 +17,7 @@
#define wasm_support_bits_definitions
#include "support/bits.h"
#include "../compiler-support.h"
+#include "support/utilities.h"
namespace wasm {
@@ -91,7 +92,7 @@ template<> int CountLeadingZeroes<uint64_t>(uint64_t v) {
uint32_t Log2(uint32_t v) {
switch (v) {
default:
- WASM_UNREACHABLE();
+ WASM_UNREACHABLE("invalid value");
case 1:
return 0;
case 2: