[llvm-commits] [llvm] r134671 - /llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp
Akira Hatanaka
ahatanak at gmail.com
Thu Jul 7 17:42:35 PDT 2011
Author: ahatanak
Date: Thu Jul 7 19:42:35 2011
New Revision: 134671
URL: http://llvm.org/viewvc/llvm-project?rev=134671&view=rev
Log:
Raise assertion when MachineOperand has unexpected target flag.
Modified:
llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp?rev=134671&r1=134670&r2=134671&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsMCInstLower.cpp Thu Jul 7 19:42:35 2011
@@ -35,7 +35,8 @@
int Offset = 0;
switch(MO.getTargetFlags()) {
- default: Kind = MipsMCSymbolRefExpr::VK_Mips_None; break;
+ default: assert(0 && "Invalid target flag!");
+ case MipsII::MO_NO_FLAG: Kind = MipsMCSymbolRefExpr::VK_Mips_None; break;
case MipsII::MO_GPREL: Kind = MipsMCSymbolRefExpr::VK_Mips_GPREL; break;
case MipsII::MO_GOT_CALL: Kind = MipsMCSymbolRefExpr::VK_Mips_GOT_CALL; break;
case MipsII::MO_GOT: Kind = MipsMCSymbolRefExpr::VK_Mips_GOT; break;
More information about the llvm-commits
mailing list