summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-11 00:41:15 +0000
committerChris Lattner <sabre@nondot.org>2009-09-11 00:41:15 +0000
commit5f12c21320c7214e54b383876c586f57c091458f (patch)
treef5696ae7e44924629b8d52b95191e50fd4f6cfad /utils
parent9cef48eae9a4776ef2f42687072e7c61cb33e10d (diff)
downloadllvm-5f12c21320c7214e54b383876c586f57c091458f.tar.gz
llvm-5f12c21320c7214e54b383876c586f57c091458f.tar.bz2
llvm-5f12c21320c7214e54b383876c586f57c091458f.tar.xz
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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index db959ad7c4..a6f614958b 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.