summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-28 23:46:15 +0000
committerChris Lattner <sabre@nondot.org>2010-07-28 23:46:15 +0000
commit4b8585ef6a2ce8943e963d61dc3406d5579ce365 (patch)
tree64f240cbb6e23545d542005fbb7c32a0592878cb /clang/lib/CodeGen/CGCall.cpp
parente6a4e3933d59a045189a813e7d6e4626071a9445 (diff)
downloadbcm5719-llvm-4b8585ef6a2ce8943e963d61dc3406d5579ce365.tar.gz
bcm5719-llvm-4b8585ef6a2ce8943e963d61dc3406d5579ce365.zip
tidy up
llvm-svn: 109699
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 32547db7fa3..1df3803b773 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -729,11 +729,10 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
const ABIArgInfo &RetAI = FI.getReturnInfo();
switch (RetAI.getKind()) {
case ABIArgInfo::Extend:
- if (RetTy->hasSignedIntegerRepresentation()) {
+ if (RetTy->hasSignedIntegerRepresentation())
RetAttrs |= llvm::Attribute::SExt;
- } else if (RetTy->hasUnsignedIntegerRepresentation()) {
+ else if (RetTy->hasUnsignedIntegerRepresentation())
RetAttrs |= llvm::Attribute::ZExt;
- }
// FALLTHROUGH
case ABIArgInfo::Direct:
break;
@@ -795,11 +794,10 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
break;
case ABIArgInfo::Extend:
- if (ParamType->isSignedIntegerType()) {
- Attributes |= llvm::Attribute::SExt;
- } else if (ParamType->isUnsignedIntegerType()) {
- Attributes |= llvm::Attribute::ZExt;
- }
+ if (ParamType->isSignedIntegerType())
+ Attributes |= llvm::Attribute::SExt;
+ else if (ParamType->isUnsignedIntegerType())
+ Attributes |= llvm::Attribute::ZExt;
// FALLS THROUGH
case ABIArgInfo::Direct:
if (RegParm > 0 &&
OpenPOWER on IntegriCloud