aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-29 20:14:29 +0000
committerDan Gohman <gohman@apple.com>2007-10-29 20:14:29 +0000
commit7f21fd5b64267bb04240d7bb09279efefaa12f69 (patch)
treedc2c8324e6311c1af913108309dab0573561ba3b
parent3c3ddb3a856e44c603cb8cf8f52ff9c0f06ff14a (diff)
Do a real assert if there is an unhandled vector instruction instead
of just printing to cerr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43466 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LowerPacked.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/LowerPacked.cpp b/lib/Transforms/Scalar/LowerPacked.cpp
index 24a9cc20ee..515995ebbe 100644
--- a/lib/Transforms/Scalar/LowerPacked.cpp
+++ b/lib/Transforms/Scalar/LowerPacked.cpp
@@ -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.