FastISel support for unreachable.
authorDan Gohman <gohman@apple.com>
Fri, 5 Sep 2008 01:08:41 +0000 (01:08 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 5 Sep 2008 01:08:41 +0000 (01:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55818 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 043691cf07149e2f96f06a68d5d5df4ef7d37bbf..64cc5a8abee4b8390f513ea414cd2c727d68f4b1 100644 (file)
@@ -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;