Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: src/IceTypes.cpp

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTypes.h ('k') | src/IceTypes.def » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/IceTypes.h ('k') | src/IceTypes.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698