diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-01-05 10:15:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-01-05 10:15:49 +0000 |
commit | d3c02f177a878167f7155d1cc3967bdf681ae36d (patch) | |
tree | 956b82b101c43f1e38dfdeacc570b022737b09aa /llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | |
parent | 40c1b352921c8a3fb3718b8015243121bb32b986 (diff) | |
download | bcm5719-llvm-d3c02f177a878167f7155d1cc3967bdf681ae36d.tar.gz bcm5719-llvm-d3c02f177a878167f7155d1cc3967bdf681ae36d.zip |
Replace several 'assert(false' with 'llvm_unreachable' or fold a condition into the assert.
llvm-svn: 225160
Diffstat (limited to 'llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp index 80e555e5f5c..61743ff7620 100644 --- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp +++ b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp @@ -134,8 +134,8 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) { } else if (const MipsMCExpr *ME = dyn_cast<MipsMCExpr>(Expr)) { ME->print(OS); return; - } else if (!(SRE = dyn_cast<MCSymbolRefExpr>(Expr))) - assert(false && "Unexpected MCExpr type."); + } else + SRE = cast<MCSymbolRefExpr>(Expr); MCSymbolRefExpr::VariantKind Kind = SRE->getKind(); |