summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ABIInfo.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-19 05:04:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-19 05:04:37 +0000
commit0b4cc950c54c8dd2de51587ef48446de670fa012 (patch)
treec250b4590c3d73230837eb5eebca2a7cd1af573b /lib/CodeGen/ABIInfo.h
parentd9cad403c0f76cbbcc53efbfeee3d59f9f0b6e09 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
-rw-r--r--lib/CodeGen/ABIInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h
index fb5eadbede..1dd1d195c2 100644
--- a/lib/CodeGen/ABIInfo.h
+++ b/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) {