mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Transform an occurrence of if(...) { assert (0) }.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -676,10 +676,8 @@ SparcV9InstrInfo::CreateCopyInstructionsByType(const TargetMachine& target,
|
|||||||
const Type* resultType = dest->getType();
|
const Type* resultType = dest->getType();
|
||||||
|
|
||||||
MachineOpCode opCode = ChooseAddInstructionByType(resultType);
|
MachineOpCode opCode = ChooseAddInstructionByType(resultType);
|
||||||
if (opCode == V9::INVALID_OPCODE) {
|
assert (opCode != V9::INVALID_OPCODE
|
||||||
assert(0 && "Unsupported result type in CreateCopyInstructionsByType()");
|
&& "Unsupported result type in CreateCopyInstructionsByType()");
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if `src' is a constant that doesn't fit in the immed field or if it is
|
// if `src' is a constant that doesn't fit in the immed field or if it is
|
||||||
// a global variable (i.e., a constant address), generate a load
|
// a global variable (i.e., a constant address), generate a load
|
||||||
|
Reference in New Issue
Block a user