From e8d34fa172d16f1ad2fe405e7ba8506a335f3382 Mon Sep 17 00:00:00 2001 From: Julien Lerouge Date: Tue, 26 Aug 2014 22:11:53 +0000 Subject: Revert 216491, it breaks CodeGenCXX/microsoft-abi-member-pointers.cpp llvm-svn: 216496 --- clang/lib/CodeGen/TargetInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/TargetInfo.cpp') diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 4e4f03b6c09..ea5f7c22399 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -2773,6 +2773,9 @@ ABIArgInfo WinX86_64ABIInfo::classify(QualType Ty, bool IsReturnType) const { return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(), Size)); } + if (Ty->isPromotableIntegerType()) + return ABIArgInfo::getExtend(); + return ABIArgInfo::getDirect(); } -- cgit v1.2.3