diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-28 23:46:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-28 23:46:15 +0000 |
commit | 2eb9cdd5922c6fe48af185bee1988dabb5bd644e (patch) | |
tree | af8013f940ff97bb2d933ef16dddf409dab07032 /lib/CodeGen/CGCall.cpp | |
parent | 20432ef377e8ebcf2933d3f568eaf72766b06116 (diff) |
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 32547db7fa..1df3803b77 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/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 && |