]> granicus.if.org Git - clang/commitdiff
Finish r144971, which was an incomplete commit.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 18 Nov 2011 04:01:36 +0000 (04:01 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 18 Nov 2011 04:01:36 +0000 (04:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144972 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp
test/CodeGen/x86_32-arguments-darwin.c

index a2e15107f50c13e01213766f55626e8dde82c9c7..73bb9902cb118ecf93a55a75d63b3257a59982ba 100644 (file)
@@ -688,7 +688,7 @@ ABIArgInfo X86_32ABIInfo::classifyArgumentType(QualType Ty) const {
     }
 
     // Ignore empty structs/unions.
-    if (isEmptyRecord(Context, Ty, true))
+    if (isEmptyRecord(getContext(), Ty, true))
       return ABIArgInfo::getIgnore();
 
     // Expand small (<= 128-bit) record types when we know that the stack layout
index cc10580f8f4205f711ed257287f6b77d4d0d1257..0ac18b792f9f3844eecf6216b79a3a7a15db8205 100644 (file)
@@ -317,7 +317,7 @@ int f63(int i, ...) {
   return s.y;
 }
 
-// CHECK: define i32 @f64(%struct.s64* nocapture byval align 4 %x)
+// CHECK: define void @f64(%struct.s64* byval align 4 %x)
 struct s64 { signed char a[0]; signed char b[]; };
 void f64(struct s64 x) {}