aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
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
commite340e84196af8618b623d499a040150373ae5da4 (patch)
tree8a4dedddd25ec4c24e8f7a147199edc850b51a30 /lib/CodeGen/SelectionDAG
parent8cf6571ec06a139c008cf3e667f120d8b7cfdf01 (diff)
downloadexternal_llvm-e340e84196af8618b623d499a040150373ae5da4.zip
external_llvm-e340e84196af8618b623d499a040150373ae5da4.tar.gz
external_llvm-e340e84196af8618b623d499a040150373ae5da4.tar.bz2
Add an assert to turn a segfault on an unsupported inline
asm construct into an assertion failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index b340d0c..bbd8b5a 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/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());