aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-05 01:08:41 +0000
committerDan Gohman <gohman@apple.com>2008-09-05 01:08:41 +0000
commit36c296ea13462818567a96faed62ef8a0746a4b9 (patch)
tree7c879b83e1b6cd0ae5a19cfb54cee1338c9662b2 /lib/CodeGen/SelectionDAG/FastISel.cpp
parentfe9f74a6a0878266f0198c1b0186dbd7c95e23c6 (diff)
downloadexternal_llvm-36c296ea13462818567a96faed62ef8a0746a4b9.zip
external_llvm-36c296ea13462818567a96faed62ef8a0746a4b9.tar.gz
external_llvm-36c296ea13462818567a96faed62ef8a0746a4b9.tar.bz2
FastISel support for unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 043691c..64cc5a8 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -366,6 +366,10 @@ FastISel::SelectInstruction(Instruction *I) {
return false;
}
+ case Instruction::Unreachable:
+ // Nothing to emit.
+ return true;
+
case Instruction::PHI:
// PHI nodes are already emitted.
return true;