Index: lib/Target/Mips/MipsFastISel.cpp =================================================================== --- lib/Target/Mips/MipsFastISel.cpp +++ lib/Target/Mips/MipsFastISel.cpp @@ -397,8 +397,10 @@ Opcode = I->getOpcode(); U = I; } - } else if (isa(Obj)) - return false; + } else if (const ConstantExpr *C = dyn_cast(Obj)) { + Opcode = C->getOpcode(); + U = C; + } switch (Opcode) { default: break;