diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/LowerPacked.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/LowerPacked.cpp b/lib/Transforms/Scalar/LowerPacked.cpp index 24a9cc2..515995e 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. |