mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
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
This commit is contained in:
parent
3c3ddb3a85
commit
7f21fd5b64
@ -76,13 +76,13 @@ public:
|
|||||||
void visitInsertElementInst(InsertElementInst& IE);
|
void visitInsertElementInst(InsertElementInst& IE);
|
||||||
|
|
||||||
/// This function asserts if the instruction is a VectorType but
|
/// 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.
|
/// @brief Asserts if VectorType instruction is not handled elsewhere.
|
||||||
/// @param I the unhandled instruction
|
/// @param I the unhandled instruction
|
||||||
void visitInstruction(Instruction &I) {
|
void visitInstruction(Instruction &I) {
|
||||||
if (isa<VectorType>(I.getType()))
|
assert(!isa<VectorType>(I.getType()) &&
|
||||||
cerr << "Unhandled Instruction with Packed ReturnType: " << I << '\n';
|
"Unhandled Instruction with Packed ReturnType!");
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
/// @brief Retrieves lowered values for a packed value.
|
/// @brief Retrieves lowered values for a packed value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user