[x86 fast-isel] Rather then call llvm_unreachable() have fast-isel fall back
authorChad Rosier <mcrosier@apple.com>
Wed, 11 Jul 2012 17:23:17 +0000 (17:23 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 11 Jul 2012 17:23:17 +0000 (17:23 +0000)
to Selection DAG isel.  Patch by Andrew Kaylor <andrew.kaylor@intel.com>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160055 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index f12742a5250deabae0658647f7a5b5479cd88c23..b410a6743dded66eda719aa01f408a1e079d2337 100644 (file)
@@ -1693,7 +1693,7 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {
 
     // Promote the value if needed.
     switch (VA.getLocInfo()) {
-    default: llvm_unreachable("Unknown loc info!");
+    default: return false;
     case CCValAssign::Full: break;
     case CCValAssign::SExt: {
       assert(VA.getLocVT().isInteger() && !VA.getLocVT().isVector() &&