From 5a1ac89b244940a0337ea7ae7dc371e2a9bf7c50 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 18 Nov 2011 04:01:36 +0000 Subject: [PATCH] Finish r144971, which was an incomplete commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144972 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetInfo.cpp | 2 +- test/CodeGen/x86_32-arguments-darwin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index a2e15107f5..73bb9902cb 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -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 diff --git a/test/CodeGen/x86_32-arguments-darwin.c b/test/CodeGen/x86_32-arguments-darwin.c index cc10580f8f..0ac18b792f 100644 --- a/test/CodeGen/x86_32-arguments-darwin.c +++ b/test/CodeGen/x86_32-arguments-darwin.c @@ -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) {} -- 2.40.0