diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-19 05:04:37 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-19 05:04:37 +0000 |
commit | 703c47f80784486bc22fd77371f4423b61c4fb44 (patch) | |
tree | 964658eb0f7e024b2255786996a99b6e9ea23f94 /clang/lib/CodeGen/ABIInfo.h | |
parent | 5e79ee087e9eacc311d4abca736c734fb1012f18 (diff) | |
download | bcm5719-llvm-703c47f80784486bc22fd77371f4423b61c4fb44.tar.gz bcm5719-llvm-703c47f80784486bc22fd77371f4423b61c4fb44.zip |
Fix handling of the regparm attribute in the presence of classes with copy
constructors.
When I first moved regparm support to TargetInfo.cpp I tried to isolate it
in classifyArgumentTypeWithReg, but it is actually a lot easier to flip the
code around and check for regparm at the end of the decision tree.
Without this refactoring classifyArgumentTypeWithReg would have to duplicate
the logic about when to use non-byval indirect arguments.
llvm-svn: 166266
Diffstat (limited to 'clang/lib/CodeGen/ABIInfo.h')
-rw-r--r-- | clang/lib/CodeGen/ABIInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h index fb5eadbede1..1dd1d195c21 100644 --- a/clang/lib/CodeGen/ABIInfo.h +++ b/clang/lib/CodeGen/ABIInfo.h @@ -88,7 +88,7 @@ namespace clang { llvm::Type *Padding = 0) { return ABIArgInfo(Direct, T, Offset, false, false, false, Padding); } - static ABIArgInfo getDirectInReg(llvm::Type *T) { + static ABIArgInfo getDirectInReg(llvm::Type *T = 0) { return ABIArgInfo(Direct, T, 0, false, false, true, 0); } static ABIArgInfo getExtend(llvm::Type *T = 0) { |