Index: src/IceTypes.cpp |
diff --git a/src/IceTypes.cpp b/src/IceTypes.cpp |
index b54c0d7deb08b9628d631f658bd31fbe95dd102e..84cf410fe8c6aaf182d5d282095a4b7229593c11 100644 |
--- a/src/IceTypes.cpp |
+++ b/src/IceTypes.cpp |
@@ -41,7 +41,7 @@ size_t typeWidthInBytes(Type Ty) { |
if (Index < TypeAttributesSize) { |
Width = TypeAttributes[Index].TypeWidthInBytes; |
} else { |
- assert(0 && "Invalid type for typeWidthInBytes()"); |
+ llvm_unreachable("Invalid type for typeWidthInBytes()"); |
} |
return Width; |
} |
@@ -52,7 +52,7 @@ size_t typeAlignInBytes(Type Ty) { |
if (Index < TypeAttributesSize) { |
Align = TypeAttributes[Index].TypeAlignInBytes; |
} else { |
- assert(0 && "Invalid type for typeAlignInBytes()"); |
+ llvm_unreachable("Invalid type for typeAlignInBytes()"); |
} |
return Align; |
} |
@@ -65,7 +65,7 @@ template <> Ostream &operator<<(Ostream &Str, const Type &Ty) { |
Str << TypeAttributes[Index].DisplayString; |
} else { |
Str << "???"; |
- assert(0 && "Invalid type for printing"); |
+ llvm_unreachable("Invalid type for printing"); |
} |
return Str; |