[llvm] r180873 - [inline asm] Return an undef SDValue of the expected value type, rather than

Chad Rosier mcrosier at apple.com
Wed May 1 12:49:26 PDT 2013


Author: mcrosier
Date: Wed May  1 14:49:26 2013
New Revision: 180873

URL: http://llvm.org/viewvc/llvm-project?rev=180873&view=rev
Log:
[inline asm] Return an undef SDValue of the expected value type, rather than
report a fatal error.  This allows us to continue processing the translation
unit.  Test case to come on the clang side because we need an inline asm
diagnostics handler in place.
rdar://13446483

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=180873&r1=180872&r2=180873&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Wed May  1 14:49:26 2013
@@ -314,7 +314,7 @@ static SDValue getCopyFromPartsVector(Se
     } else {
       Ctx.emitError(ErrMsg);
     }
-    report_fatal_error("Cannot handle scalar-to-vector conversion!");
+    return DAG.getUNDEF(ValueVT);
   }
 
   if (ValueVT.getVectorNumElements() == 1 &&





More information about the llvm-commits mailing list