commit | 1cee71099c0477c6bf0e8ff76a55b8873ce146b4 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Wed Jul 25 13:41:10 2012 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Wed Jul 25 13:41:10 2012 +0000 |
tree | 13dad778c8a1fc7d4676d9c731e70a18f08ff67c | |
parent | 742f2c9a43af3bae65922d2679de8835a6d4f302 [diff] [blame] |
When a return struct pointer is passed in registers, the called has nothing to pop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160725 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 08ad7fa..4eeefae 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp
@@ -1527,6 +1527,8 @@ return 0; if (!CS.paramHasAttr(1, Attribute::StructRet)) return 0; + if (CS.paramHasAttr(1, Attribute::InReg)) + return 0; return 4; }