summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-05-01 19:49:26 +0000
committerChad Rosier <mcrosier@apple.com>2013-05-01 19:49:26 +0000
commit8e4824f3500b21d40fecbae8bfce39bea829225a (patch)
tree2c725b29f41006f436bd06064f5ff5f2b342bea8
parent6e1f5b7d1a7688a202393245914de30e42ec2dcd (diff)
downloadbcm5719-llvm-8e4824f3500b21d40fecbae8bfce39bea829225a.tar.gz
bcm5719-llvm-8e4824f3500b21d40fecbae8bfce39bea829225a.zip
[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 llvm-svn: 180873
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 5eeac5b11f2..2ded723ca0f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -314,7 +314,7 @@ static SDValue getCopyFromPartsVector(SelectionDAG &DAG, DebugLoc DL,
} else {
Ctx.emitError(ErrMsg);
}
- report_fatal_error("Cannot handle scalar-to-vector conversion!");
+ return DAG.getUNDEF(ValueVT);
}
if (ValueVT.getVectorNumElements() == 1 &&
OpenPOWER on IntegriCloud