summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-14 00:30:16 +0000
committerDan Gohman <gohman@apple.com>2009-05-14 00:30:16 +0000
commitd4f63052c4f2524a41cc94b15fcbbdee4760b3d4 (patch)
treec7b4ddf045739a343467a5fb14ab944984de9dcb /llvm
parent2ec748cd5a66e0d8ac3c83887e5014f81e95204c (diff)
downloadbcm5719-llvm-d4f63052c4f2524a41cc94b15fcbbdee4760b3d4.tar.gz
bcm5719-llvm-d4f63052c4f2524a41cc94b15fcbbdee4760b3d4.zip
Add an assert to turn a segfault on an unsupported inline
asm construct into an assertion failure. llvm-svn: 71757
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index b340d0c971b..bbd8b5aa360 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -5325,6 +5325,8 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
if ((OpFlag & 7) == 2 /*REGDEF*/
|| (OpFlag & 7) == 6 /* EARLYCLOBBER REGDEF */) {
// Add (OpFlag&0xffff)>>3 registers to MatchedRegs.
+ assert(!OpInfo.isIndirect &&
+ "Don't know how to handle tied indirect register inputs yet!");
RegsForValue MatchedRegs;
MatchedRegs.TLI = &TLI;
MatchedRegs.ValueVTs.push_back(InOperandVal.getValueType());
OpenPOWER on IntegriCloud