mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 22:32:35 +00:00
Use an assert to check that SelectCode isn't called on
nodes that are already selected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbcb52afdf
commit
28c04dab38
@ -1957,13 +1957,12 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
||||
|
||||
OS << "// The main instruction selector code.\n"
|
||||
<< "SDNode *SelectCode(SDValue N) {\n"
|
||||
<< " if (N.isMachineOpcode()) {\n"
|
||||
<< " return NULL; // Already selected.\n"
|
||||
<< " }\n\n"
|
||||
<< " MVT::SimpleValueType NVT = N.getNode()->getValueType(0).getSimpleVT();\n"
|
||||
<< " switch (N.getOpcode()) {\n"
|
||||
<< " default: break;\n"
|
||||
<< " case ISD::EntryToken: // These leaves remain the same.\n"
|
||||
<< " default:\n"
|
||||
<< " assert(!N.isMachineOpcode() && \"Node already selected!\");\n"
|
||||
<< " break;\n"
|
||||
<< " case ISD::EntryToken: // These nodes remain the same.\n"
|
||||
<< " case ISD::MEMOPERAND:\n"
|
||||
<< " case ISD::BasicBlock:\n"
|
||||
<< " case ISD::Register:\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user