commit | 675d56222b6b98d2c22a17aaf69a036e57d5426a | [log] [tgz] |
---|---|---|
author | Edwin Török <edwintorok@gmail.com> | Sat Jul 11 20:10:48 2009 +0000 |
committer | Edwin Török <edwintorok@gmail.com> | Sat Jul 11 20:10:48 2009 +0000 |
tree | e4bb95c96a33fda5d5204f2c9d1b906084760415 | |
parent | 3f6e3ffc36c9dd4c10056c7262de77f6c4a115c7 [diff] [blame] |
assert(0) -> LLVM_UNREACHABLE. Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75379 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp index 837e389..17c7640 100644 --- a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
@@ -216,7 +216,7 @@ default: break; } - assert(0 && "Unknown Mips ABI"); + LLVM_UNREACHABLE( "Unknown Mips ABI"); return NULL; }