diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-29 06:44:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-29 06:44:09 +0000 |
commit | 2cdfda44a13624a52873a7cf0bb612e2a7d20c80 (patch) | |
tree | e784399e28f669a785a7abe9b731b17192fe103d /clang/lib/CodeGen | |
parent | daa1c83413e7624d4b390080dc2155177c0c7ccb (diff) | |
download | bcm5719-llvm-2cdfda44a13624a52873a7cf0bb612e2a7d20c80.tar.gz bcm5719-llvm-2cdfda44a13624a52873a7cf0bb612e2a7d20c80.zip |
fix a builder, why didn't clang++ catch this?
llvm-svn: 109735
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/ABIInfo.h | 2 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h index 642fddb5c8d..ade650580c3 100644 --- a/clang/lib/CodeGen/ABIInfo.h +++ b/clang/lib/CodeGen/ABIInfo.h @@ -52,7 +52,7 @@ namespace clang { Ignore, /// Ignore the argument (treat as void). Useful for /// void and empty structs. - Expand, /// Only valid for aggregate argument types. The + Expand, /// Only valid for aggregate argument types. The /// structure should be expanded into consecutive /// arguments for its constituent fields. Currently /// expand is only allowed on structures whose fields diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 94cfd98d07d..94a2ae9ee65 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/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); |