Drop assert that a call with struct return goes to a function with sret
[oota-llvm.git] / lib / Target / Sparc / SparcISelLowering.cpp
index 73730990125fab6d7facdb5ae57ecc052be00f72..d07d48669ccb0a74bf4fad886c57f0c9373baba3 100644 (file)
@@ -1040,8 +1040,8 @@ SparcTargetLowering::getSRetArgSize(SelectionDAG &DAG, SDValue Callee) const
   if (!CalleeFn)
     return 0;
 
-  assert(CalleeFn->hasStructRetAttr() &&
-         "Callee does not have the StructRet attribute.");
+  // It would be nice to check for the sret attribute on CalleeFn here,
+  // but since it is not part of the function type, any check will misfire.
 
   PointerType *Ty = cast<PointerType>(CalleeFn->arg_begin()->getType());
   Type *ElementTy = Ty->getElementType();