summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-05-26 19:39:54 +0000
committerHans Wennborg <hans@hanshq.net>2015-05-26 19:39:54 +0000
commit74df0df135e17963761e4771755ed091a4f99c96 (patch)
treec23d3a6fa6fc4c96ee4b424dd334c91965ff277a /clang/lib/CodeGen/CGCall.cpp
parentc5f905cceb39e98dd537bcd48adf19cecce24566 (diff)
downloadbcm5719-llvm-74df0df135e17963761e4771755ed091a4f99c96.tar.gz
bcm5719-llvm-74df0df135e17963761e4771755ed091a4f99c96.zip
Revert r238200: "[MIPS] fix extension of integer types (function calls)"
mips-unsigned-ext-var.c and mips-unsigned-extend.c fail in some builds. llvm-svn: 238237
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index f2340530d66..b73ad9e4fb5 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1588,12 +1588,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
case ABIArgInfo::Extend:
if (ParamType->isSignedIntegerOrEnumerationType())
Attrs.addAttribute(llvm::Attribute::SExt);
- else if (ParamType->isUnsignedIntegerOrEnumerationType()) {
- if (getTypes().getABIInfo().shouldSignExtUnsignedType(ParamType))
- Attrs.addAttribute(llvm::Attribute::SExt);
- else
- Attrs.addAttribute(llvm::Attribute::ZExt);
- }
+ else if (ParamType->isUnsignedIntegerOrEnumerationType())
+ Attrs.addAttribute(llvm::Attribute::ZExt);
// FALL THROUGH
case ABIArgInfo::Direct:
if (ArgNo == 0 && FI.isChainCall())
OpenPOWER on IntegriCloud