mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
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:
parent
9cef48eae9
commit
5f12c21320
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user