Allow i1 to be promoted to i32 for ARM AAPCS and AAPCS-VFP calling convention as...
authorChad Rosier <mcrosier@apple.com>
Mon, 7 Nov 2011 21:43:40 +0000 (21:43 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 7 Nov 2011 21:43:40 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144021 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCallingConv.td

index 5539d28cae8ce3b3ae03a43a2d0fb86fe430a502..a482a200aaa8ebb93f2bb711bd5de810363b746b 100644 (file)
@@ -89,7 +89,7 @@ def RetFastCC_ARM_APCS : CallingConv<[
 
 def CC_ARM_AAPCS_Common : CallingConv<[
 
-  CCIfType<[i8, i16], CCPromoteToType<i32>>,
+  CCIfType<[i1, i8, i16], CCPromoteToType<i32>>,
 
   // i64/f64 is passed in even pairs of GPRs
   // i64 is 8-aligned i32 here, so we may need to eat R1 as a pad register