Merge part of r246985, which disables this assertion release_37 origin/release_37
authorReid Kleckner <rnk@google.com>
Tue, 17 Nov 2015 21:37:58 +0000 (21:37 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 17 Nov 2015 21:37:58 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_37@253380 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp
test/CodeGen/libcalls-fno-builtin.c

index 3e4d7f323d46ce91e7a3dbd9f537b7bef70aeb5a..0bcf59bb5c3facb403c8f33aad031321550332f9 100644 (file)
@@ -1279,12 +1279,7 @@ CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI) {
     }
     break;
 
-  case ABIArgInfo::Indirect: {
-    assert(!retAI.getIndirectAlign() && "Align unused on indirect return.");
-    resultType = llvm::Type::getVoidTy(getLLVMContext());
-    break;
-  }
-
+  case ABIArgInfo::Indirect:
   case ABIArgInfo::Ignore:
     resultType = llvm::Type::getVoidTy(getLLVMContext());
     break;
index e7f3ef7b41d3ad847b25814110c9256bcda19c33..46e34202f28e70509fdb30baa5361818b72cc383 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -S -O3 -fno-builtin -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-w64-mingw32 -S -O3 -fno-builtin -o - %s | FileCheck %s
 // rdar://10551066
 
 typedef __SIZE_TYPE__ size_t;