diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2015-10-21 20:05:01 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2015-10-21 20:05:01 +0000 |
commit | 7212809abca81c749294ad190a9efa81e2a4ab54 (patch) | |
tree | adecb91f752273df501705ce4eb9c1d70710a220 /llvm/lib/Target/Sparc/SparcISelLowering.cpp | |
parent | 485ed3c64c80202d0276c37ab6121907ba6286ed (diff) | |
download | bcm5719-llvm-7212809abca81c749294ad190a9efa81e2a4ab54.tar.gz bcm5719-llvm-7212809abca81c749294ad190a9efa81e2a4ab54.zip |
Drop assert that a call with struct return goes to a function with sret
attribute. Clang incorrectly misses it on __muldc3 and friends and the
type system doesn't include it properly either.
llvm-svn: 250938
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index 73730990125..d07d48669cc 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -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(); |