diff options
| -rw-r--r-- | compiler-rt/lib/ubsan/ubsan_value.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_value.cc b/compiler-rt/lib/ubsan/ubsan_value.cc index 3d6a73548f4..f17c58989db 100644 --- a/compiler-rt/lib/ubsan/ubsan_value.cc +++ b/compiler-rt/lib/ubsan/ubsan_value.cc @@ -30,6 +30,9 @@ SIntMax Value::getSIntValue() const { #if HAVE_INT128_T if (getType().getIntegerBitWidth() == 128) return *reinterpret_cast<s128*>(Val); +#else + if (getType().getIntegerBitWidth() == 128) + UNREACHABLE("libclang_rt.ubsan was built without __int128 support"); #endif UNREACHABLE("unexpected bit width"); } @@ -43,6 +46,9 @@ UIntMax Value::getUIntValue() const { #if HAVE_INT128_T if (getType().getIntegerBitWidth() == 128) return *reinterpret_cast<u128*>(Val); +#else + if (getType().getIntegerBitWidth() == 128) + UNREACHABLE("libclang_rt.ubsan was built without __int128 support"); #endif UNREACHABLE("unexpected bit width"); } |

