aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-29 06:44:09 +0000
committerChris Lattner <sabre@nondot.org>2010-07-29 06:44:09 +0000
commit1ed72678b41c6038b08f48cb7e2a7b61e2dd9179 (patch)
tree2a6eb7471e7571aba7969a0402032644813446b2 /lib/CodeGen/CGCall.cpp
parent167cc379756e525bdf5b6b722fd78d415ed0eb2c (diff)
fix a builder, why didn't clang++ catch this?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 94cfd98d07..94a2ae9ee6 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -636,7 +636,7 @@ CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI, bool IsVariadic,
}
case ABIArgInfo::Extend:
- case ABIArgInfo::Direct:
+ case ABIArgInfo::Direct: {
// If the coerce-to type is a first class aggregate, flatten it. Either
// way is semantically identical, but fast-isel and the optimizer
// generally likes scalar values better than FCAs.
@@ -648,6 +648,7 @@ CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI, bool IsVariadic,
ArgTys.push_back(ArgTy);
}
break;
+ }
case ABIArgInfo::Expand:
GetExpandedTypes(it->type, ArgTys, IsRecursive);