Do a real assert if there is an unhandled vector instruction instead

of just printing to cerr.

llvm-svn: 43466
This commit is contained in:
Dan Gohman 2007-10-29 20:14:29 +00:00
parent e106e2f142
commit d9911e21df
1 changed files with 3 additions and 3 deletions

View File

@ -76,13 +76,13 @@ public:
void visitInsertElementInst(InsertElementInst& IE);
/// This function asserts if the instruction is a VectorType but
/// is handled by another function.
/// is not handled by another function.
///
/// @brief Asserts if VectorType instruction is not handled elsewhere.
/// @param I the unhandled instruction
void visitInstruction(Instruction &I) {
if (isa<VectorType>(I.getType()))
cerr << "Unhandled Instruction with Packed ReturnType: " << I << '\n';
assert(!isa<VectorType>(I.getType()) &&
"Unhandled Instruction with Packed ReturnType!");
}
private:
/// @brief Retrieves lowered values for a packed value.