diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-11-27 18:35:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-11-27 18:35:39 +0000 |
commit | 2871020b2d30b8a642c02280be849a7924426222 (patch) | |
tree | ef7635f8d14fb23e2f6f9f8f3ad6abfa7ca2978c /lib/CodeGen/CGCall.cpp | |
parent | 13dc8f98f6108dca8aaa9721567ed5a2d9911e0f (diff) |
Add inreg attributes to reference arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 7ff16dd951..4f2210f10e 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -831,7 +831,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, // FALL THROUGH case ABIArgInfo::Direct: if (RegParm > 0 && - (ParamType->isIntegerType() || ParamType->isPointerType())) { + (ParamType->isIntegerType() || ParamType->isPointerType() || + ParamType->isReferenceType())) { RegParm -= (Context.getTypeSize(ParamType) + PointerWidth - 1) / PointerWidth; if (RegParm >= 0) |