PHI nodes can never reach the asmprinter, assert and die instead of printing

out an illegal "PHINODE" instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-09-11 00:41:15 +00:00
parent 9cef48eae9
commit 5f12c21320

View File

@ -558,7 +558,8 @@ void AsmWriterEmitter::run(raw_ostream &O) {
for (CodeGenTarget::inst_iterator I = Target.inst_begin(),
E = Target.inst_end(); I != E; ++I)
if (!I->second.AsmString.empty())
if (!I->second.AsmString.empty() &&
I->second.TheDef->getName() != "PHI")
Instructions.push_back(AsmWriterInst(I->second, AsmWriter));
// Get the instruction numbering.