diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-11 00:41:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-11 00:41:15 +0000 |
commit | 5f12c21320c7214e54b383876c586f57c091458f (patch) | |
tree | f5696ae7e44924629b8d52b95191e50fd4f6cfad /utils | |
parent | 9cef48eae9a4776ef2f42687072e7c61cb33e10d (diff) | |
download | external_llvm-5f12c21320c7214e54b383876c586f57c091458f.zip external_llvm-5f12c21320c7214e54b383876c586f57c091458f.tar.gz external_llvm-5f12c21320c7214e54b383876c586f57c091458f.tar.bz2 |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index db959ad..a6f6149 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -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. |